@@ -142,7 +142,7 @@ class OrderDetailService extends CrudService {
const dm = values.reduce((p, n) => this.ctx.plus(p, n), 0);
discount = this.ctx.plus(discount, dm);
}
- i.real_pay = this.ctx.minus(_.get(i, 'total_detail.goods_total'), discount);
+ i.real_pay = this.ctx.service.util.orderDetail.computedRealPay(i);
return data;