left over todo for naming od pdf file
This commit is contained in:
parent
f592b27f92
commit
f428450516
1 changed files with 2 additions and 2 deletions
|
@ -3,9 +3,9 @@ module Concerns::SendGroupOrderInvoicePdf
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def send_group_order_invoice_pdf group_order_invoice
|
def send_group_order_invoice_pdf(group_order_invoice)
|
||||||
invoice_data = group_order_invoice.load_data_for_invoice
|
invoice_data = group_order_invoice.load_data_for_invoice
|
||||||
invoice_data[:title] = "Rechnung für " + invoice_data[:supplier] # TODO Internationalise und load_data rausschmeißen
|
invoice_data[:title] = t('documents.group_order_invoice_pdf.title', supplier: invoice_data[:supplier])
|
||||||
pdf = GroupOrderInvoicePdf.new group_order_invoice.load_data_for_invoice
|
pdf = GroupOrderInvoicePdf.new group_order_invoice.load_data_for_invoice
|
||||||
send_data pdf.to_pdf, filename: pdf.filename, type: 'application/pdf'
|
send_data pdf.to_pdf, filename: pdf.filename, type: 'application/pdf'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue