Fix cannot hire the empty time interval bug caused by the wrong data.
This commit is contained in:
parent
6f3333a857
commit
1e18ac077a
|
@ -100,7 +100,7 @@ class Property
|
|||
available = false
|
||||
end
|
||||
if available
|
||||
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)
|
||||
bookings = phires.where(:recurring_end_date.gte => stime, :recurring => true)
|
||||
case interval
|
||||
when 'week'
|
||||
d_step = 1.week
|
||||
|
|
Loading…
Reference in New Issue