From 99495f7a6cbc8ec795cf2457e705f05216697458 Mon Sep 17 00:00:00 2001 From: shazar rahman Date: Fri, 16 Oct 2026 18:35:09 +0530 Subject: [PATCH] Updated: Make room disable dates independent of room status Co-authored-by: Name --- .../controllers/products/configuration.tpl | 34 +-- controllers/admin/AdminImportController.php | 61 +++--- controllers/admin/AdminProductsController.php | 195 ++++++++---------- controllers/admin/AdminStatsController.php | 20 +- docs/csv_import/rooms_import.csv | 4 +- .../classes/HotelBookingDetail.php | 10 +- .../classes/HotelRoomDisableDates.php | 7 +- .../classes/HotelRoomInformation.php | 40 ++-- .../classes/HotelRoomType.php | 30 ++- .../hotelreservationsystem.php | 2 +- .../helpers/view/_partials/booking-rooms.tpl | 2 +- modules/qlohotelreports/qlohotelreports.php | 12 +- .../views/templates/hook/group-occupancy.tpl | 2 + .../views/templates/hook/group-property.tpl | 2 + .../statsbestcategories.php | 2 +- .../statsbestproducts/statsbestproducts.php | 2 +- 16 files changed, 197 insertions(+), 228 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/products/configuration.tpl b/admin-dev/themes/default/template/controllers/products/configuration.tpl index 2be7cecf2..02d04e3b6 100644 --- a/admin-dev/themes/default/template/controllers/products/configuration.tpl +++ b/admin-dev/themes/default/template/controllers/products/configuration.tpl @@ -62,7 +62,7 @@ @@ -111,9 +111,9 @@ - {if $room_info['id_status'] != $rm_status['STATUS_TEMPORARY_INACTIVE']['id'] }{l s='Add Dates'}{else}{l s='View Dates'}{/if} + {if isset($room_info['disable_dates_json']) && json_decode($room_info['disable_dates_json'])}{l s='View Dates'}{else}{l s='Add Dates'}{/if} - + {* Since the data can also be used from post incase of errors, which will cause issues with the id index *} @@ -381,7 +381,7 @@ -