mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
(bug) rebuild accounting when invoices(0).disabled
This commit is contained in:
parent
2e77862d56
commit
e020c592ec
@ -25,7 +25,7 @@ class AdvancedAccounting < ApplicationRecord
|
||||
else
|
||||
raise TypeError "Unknown accountable_type #{accountable_type}"
|
||||
end
|
||||
ids = invoices.map(&:id)
|
||||
ids = invoices.filter { |i| !i.nil? }.map(&:id)
|
||||
AccountingWorker.perform_async(:invoices, ids)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user