MaiXinRong %!s(int64=2) %!d(string=hai) anos
pai
achega
87c0b2a91f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {