heck rounding adjustment error
This commit is contained in:
@@ -184,12 +184,16 @@ class Api::OrdersController < Api::ApiController
|
||||
#checked checkin and checkout time
|
||||
def checkin_checkout_time(booking_id)
|
||||
status = true
|
||||
today = Time.now.utc
|
||||
booking = Booking.find(params[:booking_id])
|
||||
if !booking.nil?
|
||||
checkout_time = booking.checkout_at.utc
|
||||
if checkout_time <= today
|
||||
status = false
|
||||
if !params[:booking_id].nil?
|
||||
today = Time.now.utc
|
||||
booking = Booking.find(params[:booking_id])
|
||||
if !booking.nil?
|
||||
if !booking.checkout_at.nil?
|
||||
checkout_time = booking.checkout_at.utc
|
||||
if checkout_time <= today
|
||||
status = false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
return status
|
||||
|
||||
Reference in New Issue
Block a user