add bnn_upload plugin that overrides some controller methods to use order_bnn

This commit is contained in:
viehlieb 2023-02-23 00:14:00 +01:00
parent f8c91b46cd
commit b1ec0fd2fc
12 changed files with 70 additions and 27 deletions

View file

@ -0,0 +1,8 @@
Order.class_eval do
def send_to_supplier!(user, options = {})
Mailer.deliver_now_with_default_locale do
Mailer.order_result_supplier(user, self, options)
end
update!(last_sent_mail: Time.now)
end
end