MaiXinRong 2 years ago
parent
commit
87c0b2a91f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/lib/revise_price.js

+ 1 - 1
app/lib/revise_price.js

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