|
|
@@ -268,6 +268,8 @@ open class StockInLineService( |
|
|
|
// user = null |
|
|
|
this.productionDate = request.productionDate?.atStartOfDay() // maybe need to change the request to LocalDateTime |
|
|
|
this.productLotNo = request.productLotNo |
|
|
|
this.dnNo = request.dnNo |
|
|
|
this.invoiceNo = request.invoiceNo |
|
|
|
this.receiptDate = request.receiptDate?.atStartOfDay() |
|
|
|
this.status = request.status |
|
|
|
this.expiryDate = stockInLine.expiryDate ?: request.expiryDate |
|
|
@@ -314,6 +316,8 @@ open class StockInLineService( |
|
|
|
this.purchaseOrder = stockInLine.purchaseOrderLine?.purchaseOrder |
|
|
|
this.purchaseOrderLine = stockInLine.purchaseOrderLine |
|
|
|
this.productLotNo = stockInLine.productLotNo |
|
|
|
this.dnNo = stockInLine.dnNo |
|
|
|
this.invoiceNo = stockInLine.invoiceNo |
|
|
|
this.receiptDate = stockInLine.receiptDate |
|
|
|
this.stockIn = stockInLine.stockIn |
|
|
|
this.demandQty = stockInLine.demandQty |
|
|
@@ -346,6 +350,8 @@ open class StockInLineService( |
|
|
|
this.lotNo = savedInventoryLot?.lotNo ?: stockInLine.lotNo |
|
|
|
this.expiryDate = stockInLine.expiryDate ?: request.expiryDate |
|
|
|
this.productLotNo = stockInLine.productLotNo ?: request.productLotNo |
|
|
|
this.dnNo = stockInLine.dnNo ?: request.dnNo |
|
|
|
this.invoiceNo = stockInLine.invoiceNo ?: request.invoiceNo |
|
|
|
} |
|
|
|
|
|
|
|
val stockInLineEntries = listOf(stockInLine, newStockInLine) |
|
|
|