From 4869a20c00fce5dba2d129ffddefbae35218ab36 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Tue, 17 Jan 2023 19:25:23 +0530 Subject: [PATCH] update getOrderTotal call in advance payment --- classes/Cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Cart.php b/classes/Cart.php index 409f33fd9..38cba9904 100644 --- a/classes/Cart.php +++ b/classes/Cart.php @@ -1783,7 +1783,7 @@ class CartCore extends ObjectModel $order_total_discount = min(Tools::ps_round($order_total_discount, 2), (float)$order_total_products) + (float)$order_shipping_discount; if ($type == Cart::ADVANCE_PAYMENT) { // get order total without discount - $total_without_discount = self::getOrderTotal() + $order_total_discount; + $total_without_discount = $this->getOrderTotal() + $order_total_discount; // to find due amount substract advance payment without discuount from order total without discount // Due Amount = order total - advance payment (without discount) $due_amount = $total_without_discount - $order_total;