Fixed: Feature prices are not deleting after room reallocation process

This commit is contained in:
Sumit Panwar
2024-09-25 14:42:10 +05:30
parent 589dd8305f
commit bef44da2d2

View File

@@ -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