From bef44da2d2fdb698a72809282afa5f9e8782d9c6 Mon Sep 17 00:00:00 2001 From: Sumit Panwar Date: Wed, 25 Sep 2024 14:42:10 +0530 Subject: [PATCH] Fixed: Feature prices are not deleting after room reallocation process --- modules/hotelreservationsystem/classes/HotelBookingDetail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/hotelreservationsystem/classes/HotelBookingDetail.php b/modules/hotelreservationsystem/classes/HotelBookingDetail.php index d1c9e3e72..127c61d8a 100644 --- a/modules/hotelreservationsystem/classes/HotelBookingDetail.php +++ b/modules/hotelreservationsystem/classes/HotelBookingDetail.php @@ -1919,7 +1919,7 @@ class HotelBookingDetail extends ObjectModel ); // create feature price if needed - $createFeaturePrice = $newRoomPriceTaxExcl != $initialProductPriceTE; + $createFeaturePrice = ($newRoomPriceTaxExcl != $initialProductPriceTE); if ($createFeaturePrice) { $featurePriceParams = array(); $featurePriceParams = array( @@ -2121,7 +2121,7 @@ class HotelBookingDetail extends ObjectModel } // delete cart feature prices after room addition success - // HotelRoomTypeFeaturePricing::deleteByIdCart($this->context->cart->id); + HotelRoomTypeFeaturePricing::deleteByIdCart($this->context->cart->id); // =============================================================== // END: Add Process of the old booking