wip plugin
This commit is contained in:
parent
78da4feafe
commit
f9229034de
13 changed files with 100 additions and 0 deletions
8
plugins/bnn_upload/app/models/order.rb
Normal file
8
plugins/bnn_upload/app/models/order.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue