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