Refactor invoice PDF generation, download and delivery

- Remove `Que::Mailer` (#895)
- Extract controllers
- Extract translations
- Convert HAML to ERB
- Add mailer preview
- Improve UI
- Remove unused routes
- Add tests
This commit is contained in:
Artur Beljajev 2019-04-07 19:10:11 +03:00
parent 7e0fd30125
commit 27ea790b28
30 changed files with 288 additions and 138 deletions

View file

@ -0,0 +1,6 @@
class InvoiceMailerPreview < ActionMailer::Preview
def invoice_email
invoice = Invoice.first
InvoiceMailer.invoice_email(invoice: invoice, recipient: 'billing@registrar.test')
end
end