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