|
@@ -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'});
|