Browse Source

未计量数据,截止本期计算正负补差相关

MaiXinRong 2 năm trước cách đây
mục cha
commit
8edf4e0b47
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/service/stage_bills_final.js

+ 2 - 2
app/service/stage_bills_final.js

@@ -131,8 +131,8 @@ module.exports = app => {
                     p.unit_price = cp.unit_price;
                     p.contract_tp = this.ctx.helper.add(p.contract_tp, cp.contract_pc_tp);
                     p.qc_tp = this.ctx.helper.add(p.qc_tp, cp.qc_pc_tp);
-                    c.positive_qc_tp = this.ctx.helper.add(c.positive_qc_tp, cp.positive_qc_pc_tp);
-                    c.negative_qc_tp = this.ctx.helper.add(c.negative_qc_tp, cp.negative_qc_pc_tp);
+                    p.positive_qc_tp = this.ctx.helper.add(p.positive_qc_tp, cp.positive_qc_pc_tp);
+                    p.negative_qc_tp = this.ctx.helper.add(p.negative_qc_tp, cp.negative_qc_pc_tp);
                     curPc.splice(curPc.indexOf(cp), 1);
                 }
                 if (!p.unit_price) {