add bnn_upload plugin that overrides some controller methods to use order_bnn
This commit is contained in:
parent
f8c91b46cd
commit
b1ec0fd2fc
12 changed files with 70 additions and 27 deletions
|
|
@ -0,0 +1,8 @@
|
|||
Mailer.class_eval do
|
||||
require 'foodsoft_bnn_upload/order_bnn'
|
||||
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'] = FoodsoftBnnUpload::OrderBnn.new(order, options).to_csv if options[:file_formats][:bnn].present?
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue