update sale model

This commit is contained in:
Aung Myo
2018-01-02 16:07:22 +06:30
parent e27b468db1
commit 490f651b7f

View File

@@ -118,6 +118,8 @@ class Sale < ApplicationRecord
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
booking.checkout_by = requested_by.name