Parcourir la source

台账修订取值问题

MaiXinRong il y a 1 mois
Parent
commit
01691259de
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      app/lib/gcl_gather.js

+ 3 - 3
app/lib/gcl_gather.js

@@ -425,11 +425,12 @@ const gclCompareGatherModal = class {
         return gcl;
     }
     getGclNode(node) {
+        const helper = this.ctx.helper;
         const gcl = this.gclList.find(function (g) {
             return g.b_code === node.b_code &&
                 (g.name || node.name ? g.name === node.name : true) &&
                 (g.unit || node.unit ? g.unit === node.unit : true) &&
-                checkZero(this.ctx.helper.sub(g.unit_price, node.unit_price));
+                helper.checkZero(helper.sub(g.unit_price, node.unit_price));
         });
         if (gcl) {
             return gcl
@@ -626,8 +627,7 @@ const gclCompareGatherModal = class {
                 this.gatherfields(this.otherChapter.hj, d, this.ledgerSetting.chapterFields, this.ledgerSetting.prefix);
                 if (d.b_code) {
                     this.gatherfields(this.otherChapter.qd, d, this.ledgerSetting.chapterFields, this.ledgerSetting.prefix);
-                }
-                if (!d.b_code || d.b_code === '') {
+                } else {
                     this.gatherfields(this.otherChapter.fqd, d, this.ledgerSetting.chapterFields, this.ledgerSetting.prefix);
                 }