lrf 2 tahun lalu
induk
melakukan
3eb3af206c
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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);
       }
 
     }