From 263a7fefe1610801aaaea080c8384ce6bde1e4fa Mon Sep 17 00:00:00 2001 From: "CANCERYS\\kw093" Date: Fri, 18 Sep 2026 17:51:46 +0800 Subject: [PATCH] qc detail putawayed qty fix --- .../stock/entity/projection/StockInLineInfo.kt | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/ffii/fpsms/modules/stock/entity/projection/StockInLineInfo.kt b/src/main/java/com/ffii/fpsms/modules/stock/entity/projection/StockInLineInfo.kt index ed4fb6c..587b7fc 100644 --- a/src/main/java/com/ffii/fpsms/modules/stock/entity/projection/StockInLineInfo.kt +++ b/src/main/java/com/ffii/fpsms/modules/stock/entity/projection/StockInLineInfo.kt @@ -67,12 +67,15 @@ interface StockInLineInfo { interface PutAwayLineForSil { val id: Long?; - /** Stock qty (inventory lot line inQty) */ - @get:Value("#{target.inQty}") + /** + * FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.5 | 2026-09-18 + * Origin putaway qty from inventory_lot.stockInLine (lot line → lot → SIL). + * Do not use inventory_lot_line.inQty: later ADJ/TKE is added on the same line. + */ + @get:Value("#{target.inventoryLot?.stockInLine?.acceptedQty}") val stockQty: BigDecimal?; - @get:Value("#{target.inQty " + - "* ((target.inventoryLot.item.itemUoms.^[stockUnit == true && deleted == false]?.ratioN / target.inventoryLot.item.itemUoms.^[stockUnit == true && deleted == false]?.ratioD))" + - "/ ((target.inventoryLot.item.itemUoms.^[purchaseUnit == true && deleted == false]?.ratioN / target.inventoryLot.item.itemUoms.^[purchaseUnit == true && deleted == false]?.ratioD))}") + /** FP-MTMS Version Checklist | Functions Ref. No. 56 | v1.0.5 | 2026-09-18 */ + @get:Value("#{target.inventoryLot?.stockInLine?.acceptedQtyM18 ?: target.inventoryLot?.stockInLine?.acceptedQty}") val qty: BigDecimal?; @get:Value("#{target.warehouse?.code} - #{target.warehouse?.name}") val warehouse: String?;