lrf 2 lat temu
rodzic
commit
e67f5ce9b1
1 zmienionych plików z 1 dodań i 1 usunięć
  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;
   }