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