edit in check time
This commit is contained in:
@@ -163,9 +163,7 @@ class Sale < ApplicationRecord
|
||||
|
||||
booking.sale_id = self.id
|
||||
if !booking.checkout_at.nil?
|
||||
if booking.checkout_at < Time.now.utc.getlocal
|
||||
booking.checkout_at = Time.now.utc.getlocal
|
||||
end
|
||||
else
|
||||
booking.checkout_at = Time.now.utc.getlocal
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user