From 6c7fa26a44fe2939de57c525affe2a8523a0c5a0 Mon Sep 17 00:00:00 2001 From: merdan Date: Tue, 5 Jul 2022 17:36:23 +0500 Subject: [PATCH] notifications finish --- packages/Sarga/Shop/src/Repositories/OrderRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Sarga/Shop/src/Repositories/OrderRepository.php b/packages/Sarga/Shop/src/Repositories/OrderRepository.php index cd15f27c4..608ff3768 100644 --- a/packages/Sarga/Shop/src/Repositories/OrderRepository.php +++ b/packages/Sarga/Shop/src/Repositories/OrderRepository.php @@ -55,7 +55,7 @@ class OrderRepository extends WOrderRepository $order->discount_amount = $order->items()->sum('discount_amount'); $order->base_discount_amount = $order->items()->sum('discount_amount'); - $order->grand_total = $order->shipping_amount + $order->sub_total - $order->discount - $order->shipping_discount_amount; + $order->grand_total = $order->shipping_amount + $order->sub_total - $order->discount_amount - $order->shipping_discount_amount; $order->base_grand_total = $order->base_shipping_amount + $order->base_sub_total - $order->base_discount_amount - $order->base_shipping_discount_amount; $order->save();