Browse Source

1. 汇总,永久材料相关
2. 修改小数位数,兼容删除台账相关

MaiXinRong 11 tháng trước cách đây
mục cha
commit
323d0e2ac6
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 1
      app/service/rpt_gather_memory.js
  2. 1 0
      app/service/tender_info.js

+ 1 - 1
app/service/rpt_gather_memory.js

@@ -1597,7 +1597,7 @@ module.exports = app => {
                 d.end_qty = this.ctx.helper.add(d.pre_qty, d.qty);
                 d.end_tp = this.ctx.helper.add(d.pre_tp, d.tp);
             }
-            this.resultStageJgcl.push(...data);
+            this.resultStageYjcl.push(...data);
         }
         async _gatherMonthStageYjcl(sTender, month) {
             const tender = await this.ctx.service.tender.getCheckTender(sTender.tid);

+ 1 - 0
app/service/tender_info.js

@@ -261,6 +261,7 @@ module.exports = app => {
                 });
                 for (const sb of stageBills) {
                     const b = bills.find(x => {return x.id === sb.lid});
+                    if (!b) continue;
                     const contract_tp = this.ctx.helper.mul(b.unit_price, sb.contract_qty, newDecimal.tp);
                     const qc_tp = this.ctx.helper.mul(b.unit_price, sb.qc_qty, newDecimal.tp);
                     if (contract_tp == sb.contract_tp && qc_tp === sb.qc_tp) continue;