MaiXinRong 3 years ago
parent
commit
fa3a2be507
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/lib/sum_load.js

+ 1 - 1
app/lib/sum_load.js

@@ -387,7 +387,7 @@ class gatherStageGclTree extends loadGclBaseTree {
     getUpdateData() {
         const result = { update: [], errors: [], qc_detail: [] };
         for (const bn of this.baseNodes) {
-            if (!this.cover && !bn.contract_qty && !bn.qc_qty && !bn.contract_tp) continue;
+            if (!this.cover && !bn.is_import && !bn.contract_qty && !bn.qc_qty && !bn.contract_tp) continue;
 
             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, ledger_id: bn.ledger_id, type: 'qc-conflict'});