update void

This commit is contained in:
Nweni
2017-07-02 11:53:33 +06:30
parent b4eed19693
commit 58f2ff28e5

View File

@@ -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