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