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

View file

@ -117,6 +117,7 @@ class Supplier < ApplicationRecord
def mark_as_deleted def mark_as_deleted
transaction do transaction do
super super
update_column :iban, nil
articles.each(&:mark_as_deleted) articles.each(&:mark_as_deleted)
end end
end end