sale order
SAP-ERP Portal CI/CD / build (push) Successful in 3m57s

This commit is contained in:
John
2026-10-05 18:45:17 +05:30
parent e725a6571b
commit eead8f5ffd
129 changed files with 14252 additions and 452 deletions
+6
View File
@@ -272,6 +272,12 @@ async function resubmitAfterReject(id, w, { by, byName }) {
stage, JSON.stringify(log), now,
parseInt(id),
]);
// Keep an already-generated Production Order's batch snapshot in sync —
// see syncBatchFromWorkOrder()'s comment for why this can still be needed
// even after a Production Order exists.
await require('./productionOrderStore').syncBatchFromWorkOrder(id, {
batchNumber: w.batchNumber || '', mfgDate: w.mfgDate || '', expDate: w.expDate || '',
}).catch(e => console.error('[WO-STORE] syncBatchFromWorkOrder failed:', e.message));
return findById(id);
}