update void
This commit is contained in:
@@ -287,7 +287,7 @@ class SalePayment < ApplicationRecord
|
|||||||
bookings = table.bookings
|
bookings = table.bookings
|
||||||
bookings.each do |tablebooking|
|
bookings.each do |tablebooking|
|
||||||
if tablebooking.booking_status != 'moved'
|
if tablebooking.booking_status != 'moved'
|
||||||
if tablebooking.sale.sale_status != 'completed'
|
if tablebooking.sale.sale_status != 'completed' && tablebooking.sale.sale_status != 'void'
|
||||||
status = false
|
status = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user