lrf 2 rokov pred
rodič
commit
3eb3af206c
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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);
       }
 
     }