|
|
|
@@ -44,6 +44,7 @@ type AdjustmentEntry = InventoryLotLineResult & { |
|
|
|
isNew?: boolean; |
|
|
|
isOpeningInventory?: boolean; |
|
|
|
remarks?: string; |
|
|
|
uomId?: number; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@@ -61,7 +62,7 @@ interface Props { |
|
|
|
onStockAdjustmentSuccess?: () => void | Promise<void>; |
|
|
|
} |
|
|
|
|
|
|
|
/** FP-MTMS Version Checklist | Functions Ref. No. 3 | v1.0.8 | 2026-09-10 */ |
|
|
|
/** FP-MTMS Version Checklist | Functions Ref. No. 3 | v1.0.9 | 2026-09-16 */ |
|
|
|
const InventoryLotLineTable: React.FC<Props> = ({ |
|
|
|
inventoryLotLines, pagingController, setPagingController, totalCount, inventory, |
|
|
|
filterLotNo, |
|
|
|
@@ -157,6 +158,7 @@ const prevAdjustmentModalOpenRef = useRef(false); |
|
|
|
adjustedQty: line.availableQty ?? 0, |
|
|
|
originalQty: line.availableQty ?? 0, |
|
|
|
remarks: '', |
|
|
|
uomId: inventory.stockUomId ?? inventory.uomId, |
|
|
|
})); |
|
|
|
setAdjustmentEntries(initial); |
|
|
|
originalAdjustmentLinesRef.current = initial; |
|
|
|
@@ -276,6 +278,7 @@ const prevAdjustmentModalOpenRef = useRef(false); |
|
|
|
expiryDate, |
|
|
|
warehouseId: line.warehouse?.id ?? 0, |
|
|
|
uom: line.uom ?? null, |
|
|
|
uomId: line.uomId ?? null, |
|
|
|
remarks: line.remarks?.trim() || null, |
|
|
|
}; |
|
|
|
}, []); |
|
|
|
@@ -345,6 +348,7 @@ const prevAdjustmentModalOpenRef = useRef(false); |
|
|
|
status: 'available', |
|
|
|
availableQty: addEntryForm.qty, |
|
|
|
uom: inventory.uomUdfudesc || inventory.uomShortDesc || inventory.uomCode, |
|
|
|
uomId: inventory.stockUomId ?? inventory.uomId, |
|
|
|
qtyPerSmallestUnit: inventory.qtyPerSmallestUnit ?? 1, |
|
|
|
baseUom: inventory.baseUom || '', |
|
|
|
stockInLineId: 0, |
|
|
|
|