Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant
This commit is contained in:
@@ -8,18 +8,11 @@ class Api::CheckInProcessController < Api::ApiController
|
|||||||
check_in_time = booking.checkin_at.utc.getlocal.strftime("%Y-%m-%d %H:%M")
|
check_in_time = booking.checkin_at.utc.getlocal.strftime("%Y-%m-%d %H:%M")
|
||||||
check_out_time = booking.checkout_at.utc.getlocal.strftime("%Y-%m-%d %H:%M")
|
check_out_time = booking.checkout_at.utc.getlocal.strftime("%Y-%m-%d %H:%M")
|
||||||
render :json => { :status => true, :check_in_time => check_in_time, :check_out_time => check_out_time }
|
render :json => { :status => true, :check_in_time => check_in_time, :check_out_time => check_out_time }
|
||||||
else
|
|
||||||
sale_booking = dining_facility.get_current_checkout_booking
|
|
||||||
if !sale_booking.nil?
|
|
||||||
check_in_time = sale_booking.checkin_at.utc.getlocal.strftime("%Y-%m-%d %H:%M")
|
|
||||||
check_out_time = sale_booking.checkout_at.utc.getlocal.strftime("%Y-%m-%d %H:%M")
|
|
||||||
render :json => { :status => true, :check_in_time => check_in_time, :check_out_time => check_out_time }
|
|
||||||
else
|
else
|
||||||
render :json => { :status => false, :error_message => "No current booking!" }
|
render :json => { :status => false, :error_message => "No current booking!" }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
def check_in_process
|
def check_in_process
|
||||||
if params[:dining_id]
|
if params[:dining_id]
|
||||||
|
|||||||
Reference in New Issue
Block a user