|
@@ -251,6 +251,7 @@ open class StockInLineService( |
|
|
this.status = request.status |
|
|
this.status = request.status |
|
|
this.expiryDate = stockInLine.expiryDate ?: request.expiryDate |
|
|
this.expiryDate = stockInLine.expiryDate ?: request.expiryDate |
|
|
this.inventoryLot = stockInLine.inventoryLot ?: savedInventoryLot |
|
|
this.inventoryLot = stockInLine.inventoryLot ?: savedInventoryLot |
|
|
|
|
|
this.inventoryLotLine = savedInventoryLotLine |
|
|
this.lotNo = stockInLine.lotNo ?: savedInventoryLot?.lotNo |
|
|
this.lotNo = stockInLine.lotNo ?: savedInventoryLot?.lotNo |
|
|
} |
|
|
} |
|
|
val savedStockInLine = saveAndFlush(stockInLine) |
|
|
val savedStockInLine = saveAndFlush(stockInLine) |
|
@@ -320,6 +321,7 @@ open class StockInLineService( |
|
|
this.acceptedQty = request.acceptedQty |
|
|
this.acceptedQty = request.acceptedQty |
|
|
this.status = request.status |
|
|
this.status = request.status |
|
|
this.inventoryLot = savedInventoryLot ?: stockInLine.inventoryLot |
|
|
this.inventoryLot = savedInventoryLot ?: stockInLine.inventoryLot |
|
|
|
|
|
this.inventoryLotLine = savedInventoryLotLine |
|
|
this.lotNo = savedInventoryLot?.lotNo ?: stockInLine.lotNo |
|
|
this.lotNo = savedInventoryLot?.lotNo ?: stockInLine.lotNo |
|
|
this.expiryDate = stockInLine.expiryDate ?: request.expiryDate |
|
|
this.expiryDate = stockInLine.expiryDate ?: request.expiryDate |
|
|
this.productLotNo = stockInLine.productLotNo ?: request.productLotNo |
|
|
this.productLotNo = stockInLine.productLotNo ?: request.productLotNo |
|
|