Forráskód Böngészése

调整正负变更清单计算方式

ellisran 1 hónapja
szülő
commit
b42b990347
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      app/public/js/change_information.js

+ 2 - 2
app/public/js/change_information.js

@@ -6196,9 +6196,9 @@ function calcChangePrice() {
                     }
                     const posOrNePrice = ZhCalc.round(ZhCalc.mul(ZhCalc.round(c.spamount, findDecimal(c.unit)), ZhCalc.round(c.unit_price, unitPriceUnit)), totalPriceUnit) || 0;
                     if (posOrNePrice >= 0) {
-                        positive_tp = this.ctx.helper.accAdd(positive_tp, posOrNePrice);
+                        positive_tp = ZhCalc.add(positive_tp, posOrNePrice);
                     } else {
-                        negative_tp = this.ctx.helper.accAdd(negative_tp, posOrNePrice);
+                        negative_tp = ZhCalc.add(negative_tp, posOrNePrice);
                     }
                 }
             }