MaiXinRong 3 jaren geleden
bovenliggende
commit
d6093345cf
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      app/service/stage_change.js

+ 1 - 1
app/service/stage_change.js

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