Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant into adminbsb_material_ui
This commit is contained in:
@@ -184,9 +184,9 @@ class Api::OrdersController < Api::ApiController
|
|||||||
#checked checkin and checkout time
|
#checked checkin and checkout time
|
||||||
def checkin_checkout_time(booking_id)
|
def checkin_checkout_time(booking_id)
|
||||||
status = true
|
status = true
|
||||||
if !params[:booking_id].nil?
|
if !booking_id.nil?
|
||||||
today = Time.now.utc
|
today = Time.now.utc
|
||||||
booking = Booking.find(params[:booking_id])
|
booking = Booking.find(booking_id)
|
||||||
if !booking.nil?
|
if !booking.nil?
|
||||||
if !booking.checkout_at.nil?
|
if !booking.checkout_at.nil?
|
||||||
checkout_time = booking.checkout_at.utc
|
checkout_time = booking.checkout_at.utc
|
||||||
|
|||||||
Reference in New Issue
Block a user