Ver código fonte

1.0 fix also fix out qty

fix負數倉
CANCERYS\kw093 3 semanas atrás
pai
commit
8a7e1a019f
4 arquivos alterados com 4 adições e 2 exclusões
  1. +1
    -0
      src/app/api/stockLedgerFix/client.ts
  2. +1
    -0
      src/components/StockLedgerFix/StockLedgerFixPageClient.tsx
  3. +1
    -1
      src/i18n/en/stockLedgerFix.json
  4. +1
    -1
      src/i18n/zh/stockLedgerFix.json

+ 1
- 0
src/app/api/stockLedgerFix/client.ts Ver arquivo

@@ -67,6 +67,7 @@ export type StockLedgerFixInventoryResponse = {
patchedStockUomId: number;
nullStockUomIdAfter: number;
orphansDeleted?: number;
outQtyNulledToZero?: number;
};

export type StockLedgerFixSearchInventoryHit = {


+ 1
- 0
src/components/StockLedgerFix/StockLedgerFixPageClient.tsx Ver arquivo

@@ -444,6 +444,7 @@ const StockLedgerFixPageClient: React.FC = () => {
patched: res.patchedStockUomId,
inserted: res.inserted,
orphans: res.orphansDeleted ?? 0,
outQty: res.outQtyNulledToZero ?? 0,
updated: res.updated,
missingAfter: res.missingUomPairsAfter,
nullAfter: res.nullStockUomIdAfter,


+ 1
- 1
src/i18n/en/stockLedgerFix.json Ver arquivo

@@ -7,7 +7,7 @@
"inventory10Running": "Recalculating…",
"inventory10Run": "Run inventory 1.0 (A)",
"inventory10Confirm": "Plan A: keep existing inventory.id; backfill stockUomId from lots (if the old uomId is stock, revert it to base); insert missing (itemId, stockUomId) rows; recalculate onHand/unavailable from lot in−out. Does not write onHoldQty or change inventory_lot_line. Continue?",
"inventory10Done": "Inventory 1.0 complete: patched stockUomId {{patched}} rows, inserted {{inserted}}, orphans deleted {{orphans}}, recalculated {{updated}}, still missing UOM {{missingAfter}}, still NULL stockUomId {{nullAfter}}",
"inventory10Done": "Inventory 1.0 complete: patched stockUomId {{patched}} rows, inserted {{inserted}}, orphans deleted {{orphans}}, outQty NULL to 0 {{outQty}}, recalculated {{updated}}, still missing UOM {{missingAfter}}, still NULL stockUomId {{nullAfter}}",
"inventory10Fail": "Inventory 1.0 failed",
"adjTitle": "2.7 ADJ",
"adjDescription": "Run 2.7a first, then 2.7b. 2.7a only handles lot lines where out qty is greater than in qty: in qty is raised to match out qty, and an inbound ADJ is written on that same lot. 2.7b only fills each lot's own gap (lot remain minus ledger remain), does not change the lot line, then rebuilds those bucket balances from in/out. Lots that already match are skipped.",


+ 1
- 1
src/i18n/zh/stockLedgerFix.json Ver arquivo

@@ -7,7 +7,7 @@
"inventory10Running": "重算中…",
"inventory10Run": "Run inventory 1.0 (A)",
"inventory10Confirm": "方案 A:保留現有 inventory.id;從 lot 回填 stockUomId(舊 uomId 是 stock 則改回 base);補缺 (itemId, stockUomId);用 lot 的 in−out 重算 onHand/unavailable。不寫 onHoldQty、不改 inventory_lot_line。確定執行?",
"inventory10Done": "inventory 1.0 完成:回填 stockUomId {{patched}} 列、新增 {{inserted}} 列、殘列 deleted {{orphans}}、重算 {{updated}} 列、之後仍缺 UOM {{missingAfter}}、仍 NULL stockUomId {{nullAfter}}",
"inventory10Done": "inventory 1.0 完成:回填 stockUomId {{patched}} 列、新增 {{inserted}} 列、殘列 deleted {{orphans}}、outQty NULL 改 0 {{outQty}} 列、重算 {{updated}} 列、之後仍缺 UOM {{missingAfter}}、仍 NULL stockUomId {{nullAfter}}",
"inventory10Fail": "inventory 1.0 失敗",
"adjTitle": "2.7 ADJ",
"adjDescription": "先跑 2.7a,再跑 2.7b。2.7a 只處理出數量大於入數量的批號列:入數量改成和出數量一樣,並在同一條批寫入倉 ADJ。2.7b 只補每一條批自己的差額(批號列剩餘減帳本剩餘),不改批號列,再按進出重算這些桶的餘額。已經一樣的批不會再寫。",


Carregando…
Cancelar
Salvar