|
@@ -518,7 +518,7 @@ module.exports = app => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- const price = this.ctx.helper.mul(zheli , this.ctx.helper.round(unitPrice, up_decimal), tp_decimal);
|
|
|
|
|
|
+ const price = this.ctx.helper.mul(spamount, this.ctx.helper.round(unitPrice, up_decimal), tp_decimal);
|
|
const valuation_price = this.ctx.helper.mul(valuation_amount, this.ctx.helper.round(unitPrice, up_decimal), tp_decimal) || 0;
|
|
const valuation_price = this.ctx.helper.mul(valuation_amount, this.ctx.helper.round(unitPrice, up_decimal), tp_decimal) || 0;
|
|
const unvaluation_price = this.ctx.helper.mul(unvaluation_amount, this.ctx.helper.round(unitPrice, up_decimal), tp_decimal) || 0;
|
|
const unvaluation_price = this.ctx.helper.mul(unvaluation_amount, this.ctx.helper.round(unitPrice, up_decimal), tp_decimal) || 0;
|
|
valuation_tp = this.ctx.helper.accAdd(valuation_tp, valuation_price);
|
|
valuation_tp = this.ctx.helper.accAdd(valuation_tp, valuation_price);
|