notifications finish

This commit is contained in:
merdan 2022-07-05 17:36:23 +05:00
parent 8f22290867
commit 6c7fa26a44
1 changed files with 1 additions and 1 deletions

View File

@ -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();