updated the comments and updated the variable name from preparation time to min booking offset

This commit is contained in:
vishalsingh.qlo325
2025-05-14 16:20:22 +05:30
parent d2e2ac1fb1
commit 6018276fd2
3 changed files with 5 additions and 5 deletions

View File

@@ -1064,7 +1064,7 @@ class HotelBranchInformation extends ObjectModel
public function setWsHotelRestrictions()
{
if ($this->id) {
// save maximum booking date and preparation time
// save maximum booking offset and min booking offset
if ($restrictDateInfo = HotelOrderRestrictDate::getDataByHotelId($this->id)) {
$objHotelRestrictDate = new HotelOrderRestrictDate($restrictDateInfo['id']);
} else {

View File

@@ -741,7 +741,7 @@ class AdminAddHotelController extends ModuleAdminController
$objHotelBranch->updateRoomTypeCategories();
if ($idHotel) {
// save maximum booking date and preparation time
// save maximum booking offset and minimum booking offset
$objHotelOrderRestrictDate = new HotelOrderRestrictDate();
$restrictDateInfo = HotelOrderRestrictDate::getDataByHotelId($newIdHotel);
if ($restrictDateInfo) {

View File

@@ -223,12 +223,12 @@ const BookingSearchManager = {
if ($(selectedHotel).val().trim() != '') {
const maxOrderDate = $(selectedHotel).attr('data-max_order_date');
const preparationTime = $(selectedHotel).attr('data-min_booking_offset')
const minBookingOffset = $(selectedHotel).attr('data-min_booking_offset')
createDateRangePicker(maxOrderDate, preparationTime, $('#check_in_time').val(), $('#check_out_time').val());
createDateRangePicker(maxOrderDate, minBookingOffset, $('#check_in_time').val(), $('#check_out_time').val());
$('#max_order_date').val(maxOrderDate);
$('#min_booking_offset').val(preparationTime);
$('#min_booking_offset').val(minBookingOffset);
$('#id_hotel').val($(selectedHotel).attr('data-id-hotel'));
$('#hotel_cat_id').val($(selectedHotel).attr('data-hotel-cat-id'));