mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] Use real_dates for showing correct checkin/checkout in splitted reservation
This commit is contained in:
@@ -746,10 +746,10 @@ var PMSCalendarController = AbstractController.extend({
|
||||
'room_type_name': tp['room_type_name'],
|
||||
'adults': tp['adults'],
|
||||
'children': tp['children'],
|
||||
'checkin': HotelCalendar.toMomentUTC(tp['checkin'], '').format("DD MMMM"),
|
||||
'checkin_day_of_week': HotelCalendar.toMomentUTC(tp['checkin'], '').format("dddd"),
|
||||
'checkout': HotelCalendar.toMomentUTC(tp['checkout'], '').format("DD MMMM"),
|
||||
'checkout_day_of_week': HotelCalendar.toMomentUTC(tp['checkout'], '').format("dddd"),
|
||||
'checkin': HotelCalendar.toMomentUTC(tp['real_dates'][0], '').format("DD MMMM"),
|
||||
'checkin_day_of_week': HotelCalendar.toMomentUTC(tp['real_dates'][0], '').format("dddd"),
|
||||
'checkout': HotelCalendar.toMomentUTC(tp['real_dates'][1], '').format("DD MMMM"),
|
||||
'checkout_day_of_week': HotelCalendar.toMomentUTC(tp['real_dates'][1], '').format("dddd"),
|
||||
'arrival_hour': tp['arrival_hour'],
|
||||
'departure_hour': tp['departure_hour'],
|
||||
'amount_total': Number(tp['amount_total']).toLocaleString(),
|
||||
|
||||
Reference in New Issue
Block a user