|
@@ -40,7 +40,7 @@ class rptMemChange extends RptMemBase {
|
|
|
|
|
|
const bills = await this.ctx.service.changePlanList.getAllDataByCondition({ where: { cpid: this.ctx.change_plan.id} });
|
|
|
bills.forEach(x => {
|
|
|
- const p_decimal = plan.decimal ? JSON.stringify(plan.decimal) : { tp: decimal.tp, up: decimal.up };
|
|
|
+ const p_decimal = plan.decimal ? JSON.parse(plan.decimal) : { tp: decimal.tp, up: decimal.up };
|
|
|
x.o_tp = helper.mul(x.oamount, x.unit_price, p_decimal.tp);
|
|
|
x.c_tp = helper.mul(x.camount, x.unit_price, p_decimal.tp);
|
|
|
x.s_tp = helper.mul(x.samount, x.unit_price, p_decimal.tp);
|