update oqs view an d promotion form update

This commit is contained in:
Aung Myo
2017-11-10 14:32:21 +06:30
parent 7115ae0a97
commit 8db96beca0
7 changed files with 91 additions and 101 deletions

View File

@@ -33,7 +33,6 @@ class DiningFacility < ApplicationRecord
def get_current_booking
booking = Booking.where("dining_facility_id = #{self.id} and booking_status ='assign' and checkin_at between '#{DateTime.now.utc - 5.hours}' and '#{DateTime.now.utc}' and checkout_at is null").limit(1)
if booking.count > 0 then
return booking[0]
else