Sfoglia il codice sorgente

本期合同计量,计算bug

MaiXinRong 3 settimane fa
parent
commit
399a4ac668
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/service/stage_bills.js

+ 1 - 1
app/service/stage_bills.js

@@ -189,7 +189,7 @@ module.exports = app => {
                 end_contract_qty = this.ctx.helper.add(end_contract_qty, preStageBills.contract_qty);
             }
             const end_contract_tp = this.ctx.helper.mul(end_contract_qty, bills.unit_price, decimal.tp);
-            return activeQty === end_contract_qty ? this.ctx.helper.sub(end_contract_tp, preStageBills.contract_tp) : this.ctx.helper.mul(stageBills.contract_qty, bills.unit_price, info.decimal.tp);
+            return activeQty === end_contract_qty ? this.ctx.helper.sub(end_contract_tp, preStageBills.contract_tp) : this.ctx.helper.mul(stageBills.contract_qty, bills.unit_price, decimal.tp);
         }
         async calcContractTp(info, stage, bills, stageBills) {
             const correct = this.ctx.subProject.page_show.correctCalcContractTp;