Kaynağa Gözat

截止本期正负变更金额计算

MaiXinRong 2 yıl önce
ebeveyn
işleme
c0833b8853
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      app/service/stage_bills_final.js

+ 2 - 0
app/service/stage_bills_final.js

@@ -98,6 +98,8 @@ module.exports = app => {
                     c.qc_minus_qty = this.ctx.helper.add(c.qc_minus_qty, p.qc_minus_qty);
                     c.positive_qc_qty = this.ctx.helper.add(c.positive_qc_qty, p.positive_qc_qty);
                     c.negative_qc_qty = this.ctx.helper.add(c.negative_qc_qty, p.negative_qc_qty);
+                    c.positive_qc_tp = this.ctx.helper.add(c.positive_qc_tp, p.positive_qc_tp);
+                    c.negative_qc_tp = this.ctx.helper.add(c.negative_qc_tp, p.negative_qc_tp);
                     c.used = p.used || !this.ctx.helper.checkZero(c.contract_qty) || !this.ctx.helper.checkZero(c.qc_qty)
                         || !this.ctx.helper.checkZero(c.contract_tp) || ! this.ctx.helper.checkZero(c.qc_minus_qty);
                     pre.splice(pre.indexOf(p), 1);