Browse Source

合同支付金额增加补差值

ellisran 1 year ago
parent
commit
25f784cc1b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/service/stage.js

+ 2 - 1
app/service/stage.js

@@ -622,7 +622,8 @@ module.exports = app => {
                         break;
                         break;
                     case 'ybbqwc':
                     case 'ybbqwc':
                         const sumGcl = await this.ctx.service.stageBills.getSumTotalPriceGcl(stage, '^[^0-9]*1[0-9]{2}(-|$)');
                         const sumGcl = await this.ctx.service.stageBills.getSumTotalPriceGcl(stage, '^[^0-9]*1[0-9]{2}(-|$)');
-                        cb.value = this.ctx.helper.add(sumGcl.contract_tp, sumGcl.qc_tp);
+                        const sumPc = await this.ctx.service.stageBillsPc.getSumTotalPriceGcl(stage, '^[^0-9]*1[0-9]{2}(-|$)');
+                        cb.value = this.ctx.helper.sum([sumGcl.contract_tp, sumGcl.qc_tp, sumPc.pc_tp]);
                         break;
                         break;
                     case 'ybbqbg':
                     case 'ybbqbg':
                         cb.value = bg.common;
                         cb.value = bg.common;