|
|
|
@@ -378,8 +378,7 @@ open class StockInLineService( |
|
|
|
BigDecimal.ONE |
|
|
|
} |
|
|
|
|
|
|
|
// if (inventoryLotLines.sumOf { it.inQty ?: BigDecimal.ZERO } >= request.acceptQty?.times(ratio)) { |
|
|
|
if (request.inventoryLotLines?.isEmpty() == true) { // Clicked proceed in PO Modal -- TODO improve |
|
|
|
if (inventoryLotLines.sumOf { it.inQty ?: BigDecimal.ZERO } >= request.acceptQty?.times(ratio)) { |
|
|
|
stockInLine.apply { |
|
|
|
this.status = if (request.acceptQty?.compareTo(request.acceptedQty) == 0) |
|
|
|
StockInLineStatus.COMPLETE.status else StockInLineStatus.PARTIALLY_COMPLETE.status |
|
|
|
|