Read NFC
This commit is contained in:
@@ -54,7 +54,7 @@ class DiningFacility < ApplicationRecord
|
||||
def get_checkout_booking
|
||||
booking = self.current_reserved_booking
|
||||
if booking
|
||||
lookup_checkout_time = Lookup.where("shop_code='#{self.shop_code}'").collection_of("checkout_alert_time")
|
||||
lookup_checkout_time = Lookup.collection_of("checkout_alert_time")
|
||||
free_time_min = 0
|
||||
if !lookup_checkout_time.empty?
|
||||
now = Time.now.utc
|
||||
@@ -95,7 +95,7 @@ class DiningFacility < ApplicationRecord
|
||||
bookings = self.current_checkin_booking
|
||||
arr_booking = Array.new
|
||||
if bookings
|
||||
lookup_checkout_time = Lookup.where("shop_code='#{self.shop_code}'").collection_of("checkout_alert_time")
|
||||
lookup_checkout_time = Lookup.collection_of("checkout_alert_time")
|
||||
free_time_min = 0
|
||||
if !lookup_checkout_time.empty?
|
||||
now = Time.now.utc
|
||||
|
||||
Reference in New Issue
Block a user