|
@@ -180,7 +180,7 @@ class revisePriceCalc {
|
|
|
updateBills.push({ id: b.id, unit_price: p.new_price });
|
|
|
bills_tp = this.ctx.helper.mul(p.new_price, b.spamount, change.tp_decimal);
|
|
|
} else {
|
|
|
- bills_tp = this.ctx.helper.mul(p.unit_price, b.spamount, change.tp_decimal);
|
|
|
+ bills_tp = this.ctx.helper.mul(b.unit_price, b.spamount, change.tp_decimal);
|
|
|
}
|
|
|
total_price = this.ctx.helper.add(total_price, bills_tp);
|
|
|
if (b.spamount >= 0) {
|