lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
e67f5ce9b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/service/trade/orderDetail.js

+ 1 - 1
app/service/trade/orderDetail.js

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