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/mailers/mailer.rb
Normal file
8
plugins/bnn_upload/app/mailers/mailer.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class Mailer
|
||||
# attaches files to mail sent to supplier
|
||||
def add_order_result_attachments(order, options = {})
|
||||
attachments['order.pdf'] = OrderFax.new(order, options).to_pdf if options[:file_formats][:pdf].present?
|
||||
attachments['order.csv'] = OrderCsv.new(order, options).to_csv if options[:file_formats][:csv].present?
|
||||
attachments['order.bnn'] = OrderBnn.new(order, options).to_bnn if options[:file_formats][:bnn].present?
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue