wip plugin

This commit is contained in:
viehlieb 2023-02-17 13:16:03 +01:00
parent 78da4feafe
commit f9229034de
13 changed files with 100 additions and 0 deletions

View file

@ -0,0 +1,8 @@
class Order
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