fix error
This commit is contained in:
parent
b8c0ff2bd5
commit
02f46d90e2
|
@ -92,7 +92,7 @@ class Property
|
||||||
available = false
|
available = false
|
||||||
end
|
end
|
||||||
if available
|
if available
|
||||||
bookings = phires.where(:recurring_end_date.gte => stime, :recurring => true) + phires.where(:recurring => false)
|
bookings = phires.where(:recurring_end_date.gte => stime, :recurring => true) + phires.where(:recurring => false,:recurring_end_date => nil) + phires.where(:recurring => false,:recurring_end_date.gte => stime)
|
||||||
case interval
|
case interval
|
||||||
when 'week'
|
when 'week'
|
||||||
d_step = 1.week
|
d_step = 1.week
|
||||||
|
|
Loading…
Reference in New Issue