MaiXinRong 3 weeks atrás
parent
commit
873a03344d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/lib/revise_price.js

+ 1 - 1
app/lib/revise_price.js

@@ -255,7 +255,7 @@ class revisePriceCalc {
         }
         let total_price = 0, positive_tp = 0, negative_tp = 0, valuation_tp = 0, unvaluation_tp = 0;
         for (const sb of sumBills) {
-            cb.qty = this.ctx.helper.add(sb.v_qty, sb.uv_qty);
+            sb.qty = this.ctx.helper.add(sb.v_qty, sb.uv_qty);
             sb.tp = this.ctx.helper.mul(sb.qty, sb.unit_price, change.tp_decimal || decimal.tp);
             sb.v_tp = this.ctx.helper.mul(sb.v_qty, sb.unit_price, change.tp_decimal || decimal.tp);
             sb.uv_tp = this.ctx.helper.mul(sb.uv_qty, sb.unit_price, change.tp_decimal || decimal.tp);