update request bill with booking.checkout_at nil4
This commit is contained in:
@@ -114,8 +114,10 @@ class Sale < ApplicationRecord
|
||||
order.save
|
||||
|
||||
booking.sale_id = self.id
|
||||
if booking.checkout_at < Time.now.utc.getlocal
|
||||
booking.checkout_at = Time.now.utc.getlocal
|
||||
if !booking.checkout_at.nil?
|
||||
if booking.checkout_at < Time.now.utc.getlocal
|
||||
booking.checkout_at = Time.now.utc.getlocal
|
||||
end
|
||||
end
|
||||
|
||||
booking.checkout_by = requested_by.name
|
||||
|
||||
Reference in New Issue
Block a user