mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] Can't place reservation wihtin the calendar rage
This commit is contained in:
@@ -470,8 +470,8 @@ HotelCalendar.prototype = {
|
||||
_calcReservationCellLimits: function(/*HReservationObject*/reservation, /*Int?*/nbed, /*Bool?*/notCheck) {
|
||||
var limits = new HLimit();
|
||||
if (!reservation.startDate || !reservation.endDate ||
|
||||
(!reservation.startDate.isBetween(this.options.startDate, this._endDate, 'day', '()') &&
|
||||
!reservation.endDate.isBetween(this.options.startDate, this._endDate, 'day', '()') &&
|
||||
(!reservation.startDate.isBetween(this.options.startDate, this._endDate, 'day', '[]') &&
|
||||
!reservation.endDate.isBetween(this.options.startDate, this._endDate, 'day', '[]') &&
|
||||
!reservation.startDate.isBefore(this.options.startDate, 'day', '()') &&
|
||||
!reservation.endDate.isAfter(this._endDate, 'day', '()'))) {
|
||||
return limits;
|
||||
|
||||
Reference in New Issue
Block a user