From 629cffb6f45eb004107905bb6bee6b9cc4a9b54f Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Thu, 12 Sep 2024 12:00:39 +0530 Subject: [PATCH] Remove multiple rounding on same value --- .../classes/HotelRoomTypeFeaturePricing.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/hotelreservationsystem/classes/HotelRoomTypeFeaturePricing.php b/modules/hotelreservationsystem/classes/HotelRoomTypeFeaturePricing.php index af66bf054..6f6400f80 100644 --- a/modules/hotelreservationsystem/classes/HotelRoomTypeFeaturePricing.php +++ b/modules/hotelreservationsystem/classes/HotelRoomTypeFeaturePricing.php @@ -718,7 +718,7 @@ class HotelRoomTypeFeaturePricing extends ObjectModel } } if ($with_auto_room_services) { - if ($id_cart) { + if ($id_cart && $id_room) { $objRoomTypeServiceProductCartDetail = new RoomTypeServiceProductCartDetail(); if ($roomServicesServices = $objRoomTypeServiceProductCartDetail->getServiceProductsInCart( $id_cart, @@ -740,8 +740,8 @@ class HotelRoomTypeFeaturePricing extends ObjectModel } if (isset($selectedServices)) { - $totalPrice['total_price_tax_incl'] += Tools::processPriceRounding($selectedServices['total_price_tax_incl']); - $totalPrice['total_price_tax_excl'] += Tools::processPriceRounding($selectedServices['total_price_tax_excl']); + $totalPrice['total_price_tax_incl'] += $selectedServices['total_price_tax_incl']; + $totalPrice['total_price_tax_excl'] += $selectedServices['total_price_tax_excl']; } else { if ($servicesWithTax = RoomTypeServiceProduct::getAutoAddServices( $id_product,