Clear IBAN when deleting a supplier
This commit is contained in:
parent
0aa853c53d
commit
dbb7407005
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue