Clear IBAN when deleting a supplier
This commit is contained in:
parent
0aa853c53d
commit
dbb7407005
|
@ -117,6 +117,7 @@ class Supplier < ApplicationRecord
|
|||
def mark_as_deleted
|
||||
transaction do
|
||||
super
|
||||
update_column :iban, nil
|
||||
articles.each(&:mark_as_deleted)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue