lrf 2 år sedan
förälder
incheckning
3eb3af206c
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      app/service/util/order.js

+ 2 - 2
app/service/util/order.js

@@ -42,8 +42,8 @@ class OrderService extends CrudService {
         i.discount = this.ctx.minus(0, discount);
       } else {
         const { sell_money, num, freight } = i;
-        goods_total = this.ctx.multiply(num, sell_money);
-        freight_total = this.ctx.multiply(num, freight);
+        i.goods_total = this.ctx.multiply(num, sell_money);
+        i.freight_total = this.ctx.multiply(num, freight);
       }
 
     }