updated the comments and updated the variable name from preparation time to min booking offset
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user