Merge pull request #540 from lakshya-webkul/gli-1150

Fixed: totalAvailableRooms warning issue resolved on room detail page
This commit is contained in:
Rohit Jain
2023-03-06 16:46:58 +05:30
committed by GitHub

View File

@@ -603,6 +603,7 @@ class ProductControllerCore extends FrontController
$quantity = 1;
}
$totalAvailableRooms = 0;
if ($hotelRoomData = $objBookingDetail->DataForFrontSearch($bookingParams)) {
$totalAvailableRooms = $hotelRoomData['stats']['num_avail'];
$quantity = ($quantity > $totalAvailableRooms) ? $totalAvailableRooms : $quantity;