|
@@ -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;
|