diff --git a/admin/themes/default/template/controllers/orders/modals/_add_room_booking.tpl b/admin/themes/default/template/controllers/orders/modals/_add_room_booking.tpl index 92beca110..7a7f0dee3 100644 --- a/admin/themes/default/template/controllers/orders/modals/_add_room_booking.tpl +++ b/admin/themes/default/template/controllers/orders/modals/_add_room_booking.tpl @@ -30,6 +30,7 @@
'.print_r(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS), true).''); - } $totalPrice = array(); $totalPrice['total_price_tax_incl'] = 0; $totalPrice['total_price_tax_excl'] = 0; @@ -727,9 +724,15 @@ class HotelRoomTypeFeaturePricing extends ObjectModel 'idRoom' => $id_room, 'dateFrom' => $date_from, 'dateTo' => $date_to, + 'idCurrency' => $id_currency, + 'quantity' => $quantity, 'idCart' => $id_cart, 'idGuest' => $id_guest, - 'useReduc' => $use_reduc + 'idGroup' => $id_group, + 'useReduc' => $use_reduc, + 'taxRate' => $taxRate, + 'productPriceTI' => $productPriceTI, + 'productPriceTE' => $productPriceTE ) ); if ($with_auto_room_services) { diff --git a/modules/hotelreservationsystem/controllers/admin/AdminHotelRoomsBookingController.php b/modules/hotelreservationsystem/controllers/admin/AdminHotelRoomsBookingController.php index 144f6b8f5..b1fea57e4 100644 --- a/modules/hotelreservationsystem/controllers/admin/AdminHotelRoomsBookingController.php +++ b/modules/hotelreservationsystem/controllers/admin/AdminHotelRoomsBookingController.php @@ -313,8 +313,7 @@ class AdminHotelRoomsBookingController extends ModuleAdminController 'is_occupancy_wise_search' => $isOccupancyWiseSearch, )); MediaCore::addJsDef(array( - 'initialDate' => $this->date_from, - 'initialView' => 'timeGridDay' + 'initialDate' => $this->date_from )); } diff --git a/modules/hotelreservationsystem/views/js/admin/hotel_rooms_booking.js b/modules/hotelreservationsystem/views/js/admin/hotel_rooms_booking.js index 9a2c2caa8..5ea3c2f5e 100644 --- a/modules/hotelreservationsystem/views/js/admin/hotel_rooms_booking.js +++ b/modules/hotelreservationsystem/views/js/admin/hotel_rooms_booking.js @@ -22,7 +22,7 @@ $(document).ready(function() { // calender if ($('#fullcalendar').length) { var calendar = new FullCalendar.Calendar($('#fullcalendar').get(0), { - initialView: initialView, + initialView: 'dayGridMonth', initialDate: initialDate, events: { url: rooms_booking_url, @@ -934,23 +934,17 @@ $(document).ready(function() { function refreshStatsData() { - var search_id_room_type = $("#search_id_room_type").val(); - var search_id_hotel = $("#search_id_hotel").val(); - var search_date_from = $("#search_date_from").val(); - var search_date_to = $("#search_date_to").val(); + var formData = new FormData($('form#room-search-form').get(0)); + formData.append('ajax', true); + formData.append('action', 'getBookingStats'); $.ajax({ url: rooms_booking_url, type: 'POST', dataType: 'JSON', - data: { - ajax: true, - action: 'getBookingStats', - search_id_room_type: search_id_room_type, - search_id_hotel: search_id_hotel, - search_date_from: search_date_from, - search_date_to: search_date_to, - }, + data: formData, + processData: false, + contentType: false, success: function(result) { if (result.success) { $(".htl_room_data_cont").html(result.data.stats_panel); diff --git a/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/_partials/booking-rooms.tpl b/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/_partials/booking-rooms.tpl index 5783f4798..056d3698e 100644 --- a/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/_partials/booking-rooms.tpl +++ b/modules/hotelreservationsystem/views/templates/admin/hotel_rooms_booking/helpers/view/_partials/booking-rooms.tpl @@ -41,7 +41,7 @@ {foreach from=$book_v['data']['available'] key=avai_k item=avai_v}
{dateFormat date=date('Y-m-d', strtotime($part_v['date_from']))} - {dateFormat date=date('Y-m-d', strtotime($part_v['date_to']))}
+{dateFormat date=$part_v['date_from']} - {dateFormat date=$part_v['date_to']}