diff --git a/src/app/api/do/replenishmentTypes.ts b/src/app/api/do/replenishmentTypes.ts
index e4e7108..a2a0222 100644
--- a/src/app/api/do/replenishmentTypes.ts
+++ b/src/app/api/do/replenishmentTypes.ts
@@ -18,6 +18,7 @@ export interface DoReplenishmentRecord {
itemNo?: string;
itemName?: string;
originalQty?: number;
+ actualPickQty?: number;
replenishQty: number;
shortUom?: string;
shopCode?: string;
diff --git a/src/components/DoSearch/DoReplenishmentTab.tsx b/src/components/DoSearch/DoReplenishmentTab.tsx
index c69bbdd..123a8d7 100644
--- a/src/components/DoSearch/DoReplenishmentTab.tsx
+++ b/src/components/DoSearch/DoReplenishmentTab.tsx
@@ -112,6 +112,7 @@ export type ReplenishmentRecord = ReplenishmentDraftRow & {
targetDoCode?: string;
targetDoEstimatedArrivalDate?: string;
pickOrderLineId?: number;
+ actualPickQty?: number;
status: ReplenishmentStatus;
created: string;
};
@@ -202,7 +203,12 @@ function mapApiRecord(record: DoReplenishmentRecord): ReplenishmentRecord {
code: record.code,
targetDoId: record.targetDoId,
targetDoCode: record.targetDoCode,
+ targetDoEstimatedArrivalDate: record.targetDoEstimatedArrivalDate,
pickOrderLineId: record.pickOrderLineId,
+ actualPickQty:
+ record.actualPickQty != null && Number.isFinite(Number(record.actualPickQty))
+ ? Number(record.actualPickQty)
+ : undefined,
status: record.status as ReplenishmentStatus,
reason: record.reason,
created: record.created ?? "",
@@ -1563,6 +1569,9 @@ const DoReplenishmentTab: React.FC = () => {
{formatQtyWithUom(row.replenishQty, row.shortUom)}
+
+ {formatQtyWithUom(row.actualPickQty, row.shortUom)}
+
{formatReplenishmentReason(row.reason, t)}
diff --git a/src/i18n/en/do.json b/src/i18n/en/do.json
index b85d647..ffc6025 100644
--- a/src/i18n/en/do.json
+++ b/src/i18n/en/do.json
@@ -102,6 +102,7 @@
"Ref Code": "Ref Code",
"Replenish Qty": "Replenish Qty",
"Replenish Qty short": "Replenish",
+ "replenishmentActualPickQty": "Actual Picked Qty",
"Replenish qty must be greater than zero": "Replenish qty must be greater than zero",
"Replenishment": "Replenishment",
"Delivery date is required": "Delivery date is required",
diff --git a/src/i18n/zh/do.json b/src/i18n/zh/do.json
index 2ef5d07..fe45e4b 100644
--- a/src/i18n/zh/do.json
+++ b/src/i18n/zh/do.json
@@ -47,6 +47,7 @@
"Ref Code": "參考編號",
"Replenish Qty": "補貨數量",
"Replenish Qty short": "補貨",
+ "replenishmentActualPickQty": "實際提料數量",
"Replenish qty must be greater than zero": "補貨數量必須大於零",
"Replenishment": "補貨",
"Delivery date is required": "請選擇送貨日期",