remive check for booking checkout

This commit is contained in:
phyusin
2018-11-26 11:53:21 +06:30
parent d641a09d41
commit f3d701f789

View File

@@ -165,7 +165,7 @@ class Sale < ApplicationRecord
booking.sale_id = self.id
if !booking.checkout_at.nil?
if Time.parse(booking.checkout_at).utc < Time.now.utc
if booking.checkout_at.utc < Time.now.utc
booking.checkout_at = Time.now.utc.getlocal
end
else