small fix for calendar .. removed un passed property

This commit is contained in:
Harry Bomrah 2018-01-17 15:30:23 +08:00
parent d9c5c98a14
commit 12f4591a49
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class PHire
end
def self.monthly_event(start_date,end_date,property_id)
self.where(:property_id => property_id).any_of(:start_time.gte => start_date, :end_time.gte => start_date).and(:start_time.lte => end_date).asc(:start_time)
self.where(:property_id => property_id, :passed => true).any_of(:start_time.gte => start_date, :end_time.gte => start_date).and(:start_time.lte => end_date).asc(:start_time)
end
end