finish and readd mailer
This commit is contained in:
parent
92b72fe786
commit
ac8281fd98
8 changed files with 35 additions and 191 deletions
|
|
@ -1,6 +1,11 @@
|
|||
if FoodsoftAutomaticInvoices.enabled?
|
||||
Mailer.class_eval do
|
||||
# Sends automatically generated invoicesfor group orders to ordergroup members
|
||||
def add_group_order_invoice_attachments(group_order_invoice)
|
||||
attachment_name = group_order_invoice.name + '.pdf'
|
||||
attachments[attachment_name] = GroupOrderInvoicePdf.new(group_order_invoice.load_data_for_invoice).to_pdf
|
||||
end
|
||||
|
||||
def group_order_invoice(group_order_invoice, user)
|
||||
@user = user
|
||||
@group_order_invoice = group_order_invoice
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue