|
@@ -457,7 +457,7 @@ module.exports = app => {
|
|
|
if (!c) continue;
|
|
|
|
|
|
for (const cb of changeBillsPart[cid]) {
|
|
|
- cb.tp = this.ctx.helper.mul(cb.spamount, cb.unit_price, this.ctx.tender.info.decimal.tp);
|
|
|
+ cb.tp = this.ctx.helper.mul(cb.spamount, cb.unit_price, c.tp_decimal || this.ctx.tender.info.decimal.tp);
|
|
|
cb.used_tp = this.ctx.helper.mul(cb.used_qty, cb.unit_price, this.ctx.tender.info.decimal.tp);
|
|
|
|
|
|
c.used_tp = this.ctx.helper.add(c.used_tp, cb.used_tp);
|