Ver a proveniência

補貨 FIX

production
CANCERYS\kw093 há 8 horas
ascendente
cometimento
f70b426f78
4 ficheiros alterados com 12 adições e 0 eliminações
  1. +1
    -0
      src/app/api/do/replenishmentTypes.ts
  2. +9
    -0
      src/components/DoSearch/DoReplenishmentTab.tsx
  3. +1
    -0
      src/i18n/en/do.json
  4. +1
    -0
      src/i18n/zh/do.json

+ 1
- 0
src/app/api/do/replenishmentTypes.ts Ver ficheiro

@@ -18,6 +18,7 @@ export interface DoReplenishmentRecord {
itemNo?: string;
itemName?: string;
originalQty?: number;
actualPickQty?: number;
replenishQty: number;
shortUom?: string;
shopCode?: string;


+ 9
- 0
src/components/DoSearch/DoReplenishmentTab.tsx Ver ficheiro

@@ -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 = () => {
<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>


+ 1
- 0
src/i18n/en/do.json Ver ficheiro

@@ -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",


+ 1
- 0
src/i18n/zh/do.json Ver ficheiro

@@ -47,6 +47,7 @@
"Ref Code": "參考編號",
"Replenish Qty": "補貨數量",
"Replenish Qty short": "補貨",
"replenishmentActualPickQty": "實際提料數量",
"Replenish qty must be greater than zero": "補貨數量必須大於零",
"Replenishment": "補貨",
"Delivery date is required": "請選擇送貨日期",


Carregando…
Cancelar
Guardar