Clear IBAN when deleting a supplier

This commit is contained in:
Patrick Gansterer 2020-06-22 16:31:13 +02:00
parent 0aa853c53d
commit dbb7407005
1 changed files with 1 additions and 0 deletions

View File

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