edit in check time

This commit is contained in:
San Wai Lwin
2018-08-14 15:22:49 +06:30
parent 671aa155cd
commit 61e4b930c8
7 changed files with 20 additions and 25 deletions

View File

@@ -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