mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Add paid flag to email subject, check receipt date in tests
This commit is contained in:
parent
82c048b316
commit
235ef9ba3e
5 changed files with 32 additions and 5 deletions
|
@ -101,7 +101,8 @@ class Registrar < ApplicationRecord
|
|||
)
|
||||
|
||||
unless payable
|
||||
InvoiceMailer.invoice_email(invoice: invoice, recipient: billing_email).deliver_now
|
||||
InvoiceMailer.invoice_email(invoice: invoice, recipient: billing_email, paid: !payable)
|
||||
.deliver_later(wait: 1.minute)
|
||||
end
|
||||
|
||||
SendEInvoiceJob.perform_later(invoice.id, payable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue