From dd27980c76d1cb1e6d1f52cfbec9cfde60f4eefb Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Fri, 14 Apr 2023 16:52:59 +0530 Subject: [PATCH] changes getTotalOrderWithTaxes function --- classes/order/Order.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/classes/order/Order.php b/classes/order/Order.php index a379ae014..79ba75e60 100644 --- a/classes/order/Order.php +++ b/classes/order/Order.php @@ -1098,11 +1098,16 @@ class OrderCore extends ObjectModel * * @return Product total with taxes */ - public function getTotalProductsWithTaxes($products = false, $bookingProducts = null, $product_service_type = null) - { + public function getTotalProductsWithTaxes( + $products = false, + $bookingProducts = null, + $product_service_type = null, + $product_auto_add = null, + $product_price_addition_type = null + ) { /* Retro-compatibility (now set directly on the validateOrder() method) */ if (!$products) { - $products = $this->getProductsDetail($bookingProducts, $product_service_type); + $products = $this->getProductsDetail($bookingProducts, $product_service_type, $product_auto_add, $product_price_addition_type); } $return = 0;