Skip to content

Commit

Permalink
Fixed error in mailing invoices (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellen-Wittingen authored Dec 20, 2023
1 parent c37b7f1 commit 34c05ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mailers/invoice_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def invoice_mail(invoice) # rubocop:disable Metrics/AbcSize
@cab_text = 'iDeal betaling'

attachments["#{invoice.human_id}.pdf"] = WickedPdf.new.pdf_from_string(
render_to_string(pdf: invoice.human_id.to_s, template: 'invoices/show.html.erb', layout: 'pdf.html.erb')
render_to_string(pdf: invoice.human_id.to_s, template: 'invoices/show', layout: 'pdf')
)

mail to: @invoice.email, subject: "Factuur #{invoice.human_id} #{Rails.application.config.x.company_name}"
Expand Down

0 comments on commit 34c05ed

Please sign in to comment.