update sale model
This commit is contained in:
@@ -118,6 +118,8 @@ class Sale < ApplicationRecord
|
|||||||
if booking.checkout_at < Time.now.utc.getlocal
|
if booking.checkout_at < Time.now.utc.getlocal
|
||||||
booking.checkout_at = Time.now.utc.getlocal
|
booking.checkout_at = Time.now.utc.getlocal
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
booking.checkout_at = Time.now.utc.getlocal
|
||||||
end
|
end
|
||||||
|
|
||||||
booking.checkout_by = requested_by.name
|
booking.checkout_by = requested_by.name
|
||||||
|
|||||||
Reference in New Issue
Block a user