[FIX] Getting books

This commit is contained in:
Alexandre Díaz
2019-01-14 18:51:49 +01:00
parent aee74efa54
commit 03ff5e3871
6 changed files with 63 additions and 48 deletions

View File

@@ -296,7 +296,6 @@ var PMSCalendarController = AbstractController.extend({
$(this).find('.led').removeClass('led-enabled');
}
active_calendar.addReservations(_.reject(self._multi_calendar._dataset['reservations'], {overbooking:false}));
_.defer(function(){ active_calendar._updateReservations(false); }); // Fix Possible Rows Displacements
});
this.renderer.$el.find('#pms-menu #btn_action_cancelled button').on('click', function(ev){
@@ -310,7 +309,6 @@ var PMSCalendarController = AbstractController.extend({
$(this).find('.led').removeClass('led-enabled');
}
active_calendar.addReservations(_.reject(self._multi_calendar._dataset['reservations'], {cancelled:false}));
_.defer(function(){ active_calendar._updateReservations(false); }); // Fix Possible Rows Displacements
});
this.renderer.$el.find('#pms-menu #btn_action_divide button').on('click', function(ev){

View File

@@ -53,7 +53,7 @@ var HotelCalendarView = AbstractRenderer.extend({
if (days === 'month') {
days = date_begin.daysInMonth();
}
var date_end = date_begin.clone().add(days+1, 'd');
var date_end = date_begin.clone().add(days, 'd');
return [date_begin, date_end];
},