MaiXinRong 3 tahun lalu
induk
melakukan
76d359a5c6
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      app/lib/sum_load.js

+ 2 - 2
app/lib/sum_load.js

@@ -386,9 +386,9 @@ class gatherStageGclTree extends loadGclBaseTree {
         const result = { update: [], errors: [], qc_detail: [] };
         for (const bn of this.baseNodes) {
             if (!bn.is_import && bn.org_qc_qty !== 0 && bn.qc_qty !== 0) {
-                result.errors.push({ b_code: bn.b_code, name: bn.name, unit: bn.unit, qc_qty: bn.qc_qty, type: 'qc-conflict'});
+                result.errors.push({ b_code: bn.b_code, name: bn.name, unit: bn.unit, qc_qty: bn.qc_qty, ledger_id: bn.ledger_id, type: 'qc-conflict'});
                 if (bn.contract_qty !== bn.org_contract_qty || bn.contract_tp !== bn.org_contract_tp) {
-                    result.update.push({ lid: bn.id, ledger_id: bn.ledger_id, contract_qty: bn.contract_qty, contract_tp: bn.contract_tp, qc_qty: bn.org_qc_qty, qc_tp: bn.org_qc_tp });
+                    result.update.push({ lid: bn.id, contract_qty: bn.contract_qty, contract_tp: bn.contract_tp, qc_qty: bn.org_qc_qty, qc_tp: bn.org_qc_tp });
                 }
                 continue;
             }