|
|
|
@@ -113,6 +113,7 @@ export type ReplenishmentRecord = ReplenishmentDraftRow & { |
|
|
|
targetDoEstimatedArrivalDate?: string; |
|
|
|
pickOrderLineId?: number; |
|
|
|
actualPickQty?: number; |
|
|
|
relateTicketNo?: string; |
|
|
|
status: ReplenishmentStatus; |
|
|
|
created: string; |
|
|
|
}; |
|
|
|
@@ -209,6 +210,7 @@ function mapApiRecord(record: DoReplenishmentRecord): ReplenishmentRecord { |
|
|
|
record.actualPickQty != null && Number.isFinite(Number(record.actualPickQty)) |
|
|
|
? Number(record.actualPickQty) |
|
|
|
: undefined, |
|
|
|
relateTicketNo: record.relateTicketNo, |
|
|
|
status: record.status as ReplenishmentStatus, |
|
|
|
reason: record.reason, |
|
|
|
created: record.created ?? "", |
|
|
|
@@ -515,7 +517,7 @@ const DoReplenishmentTab: React.FC = () => { |
|
|
|
try { |
|
|
|
const searchRes = await fetchDoSearch( |
|
|
|
suffix, |
|
|
|
"", |
|
|
|
shop, |
|
|
|
"completed", |
|
|
|
"", |
|
|
|
"", |
|
|
|
@@ -1569,9 +1571,6 @@ const DoReplenishmentTab: React.FC = () => { |
|
|
|
<TrackingInlineLine label={t("Replenish Qty")}> |
|
|
|
{formatQtyWithUom(row.replenishQty, row.shortUom)} |
|
|
|
</TrackingInlineLine> |
|
|
|
<TrackingInlineLine label={t("replenishmentActualPickQty")}> |
|
|
|
{formatQtyWithUom(row.actualPickQty, row.shortUom)} |
|
|
|
</TrackingInlineLine> |
|
|
|
<TrackingInlineLine label={t("Remark")}> |
|
|
|
{formatReplenishmentReason(row.reason, t)} |
|
|
|
</TrackingInlineLine> |
|
|
|
@@ -1590,6 +1589,13 @@ const DoReplenishmentTab: React.FC = () => { |
|
|
|
: "—" |
|
|
|
} |
|
|
|
/> |
|
|
|
<TrackingFieldBlock |
|
|
|
label={t("replenishmentRelateTicketNo")} |
|
|
|
value={row.relateTicketNo ?? "—"} |
|
|
|
/> |
|
|
|
<TrackingInlineLine label={t("replenishmentActualPickQty")}> |
|
|
|
{formatQtyWithUom(row.actualPickQty, row.shortUom)} |
|
|
|
</TrackingInlineLine> |
|
|
|
<TrackingFieldBlock |
|
|
|
label={t("replenishmentStatusLabel")} |
|
|
|
value={t(row.status)} |
|
|
|
|