fix error

This commit is contained in:
chiu 2020-05-23 14:33:03 +08:00
parent b8c0ff2bd5
commit 02f46d90e2
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ class Property
available = false
end
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
when 'week'
d_step = 1.week