Fix ajax page not found issue on room type detail page

This commit is contained in:
Abhishek Kumar
2023-01-12 13:02:44 +05:30
parent c8bdac6cdd
commit 3e49492af7

View File

@@ -1237,8 +1237,8 @@ var BookingForm = {
var data = {
id_product: parseInt($('#product_page_product_id').val()),
date_from: $('#room_check_in').val(),
date_to: $('#room_check_out').val(),
date_from: $.datepicker.formatDate('yy-mm-dd', $.datepicker.parseDate('dd-mm-yy', $('#room_check_in').val())),
date_to: $.datepicker.formatDate('yy-mm-dd', $.datepicker.parseDate('dd-mm-yy', $('#room_check_out').val())),
quantity: quantity,
room_type_demands: JSON.stringify(getRoomsExtraDemands()),
};