|
|
@@ -276,6 +276,7 @@ open class StockInLineService( |
|
|
|
this.inventoryLot = stockInLine.inventoryLot ?: savedInventoryLot |
|
|
|
this.inventoryLotLine = savedInventoryLotLine |
|
|
|
this.lotNo = stockInLine.lotNo ?: savedInventoryLot?.lotNo |
|
|
|
this.remarks = stockInLine.remarks ?: request.remarks |
|
|
|
} |
|
|
|
val savedStockInLine = saveAndFlush(stockInLine) |
|
|
|
// check if all line completed |
|
|
@@ -318,6 +319,7 @@ open class StockInLineService( |
|
|
|
this.productLotNo = stockInLine.productLotNo |
|
|
|
this.dnNo = stockInLine.dnNo |
|
|
|
this.invoiceNo = stockInLine.invoiceNo |
|
|
|
this.remarks = stockInLine.remarks ?: request.remarks |
|
|
|
this.receiptDate = stockInLine.receiptDate |
|
|
|
this.stockIn = stockInLine.stockIn |
|
|
|
this.demandQty = stockInLine.demandQty |
|
|
@@ -352,6 +354,7 @@ open class StockInLineService( |
|
|
|
this.productLotNo = stockInLine.productLotNo ?: request.productLotNo |
|
|
|
this.dnNo = stockInLine.dnNo ?: request.dnNo |
|
|
|
this.invoiceNo = stockInLine.invoiceNo ?: request.invoiceNo |
|
|
|
this.remarks = stockInLine.remarks ?: request.remarks |
|
|
|
} |
|
|
|
|
|
|
|
val stockInLineEntries = listOf(stockInLine, newStockInLine) |
|
|
|