|
@@ -209,7 +209,7 @@ module.exports = app => {
|
|
|
}
|
|
|
}
|
|
|
expr += '-1]';
|
|
|
- const ex_tp = this.ctx.helper.mul(basic_calc, this.ctx.helper.sub(this.ctx.helper.add(constant, sumByChange), 1));
|
|
|
+ const ex_tp = this.ctx.helper.round(this.ctx.helper.mul(basic_calc, this.ctx.helper.sub(this.ctx.helper.add(constant, sumByChange), 1)), 2);
|
|
|
await transaction.update(this.ctx.service.material.tableName, {
|
|
|
id: mid ? mid : this.ctx.material.id,
|
|
|
ex_tp,
|