mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Payment failure template update
This commit is contained in:
parent
2505b86360
commit
a02ba606f6
@ -75,7 +75,7 @@ class ClientPaymentFailureObject
|
|||||||
$mail_obj->amount = $this->getAmount();
|
$mail_obj->amount = $this->getAmount();
|
||||||
$mail_obj->subject = $this->getSubject();
|
$mail_obj->subject = $this->getSubject();
|
||||||
$mail_obj->data = $this->getData();
|
$mail_obj->data = $this->getData();
|
||||||
$mail_obj->markdown = 'email.admin.generic';
|
$mail_obj->markdown = 'email.client.generic';
|
||||||
$mail_obj->tag = $this->company->company_key;
|
$mail_obj->tag = $this->company->company_key;
|
||||||
|
|
||||||
return $mail_obj;
|
return $mail_obj;
|
||||||
@ -113,14 +113,15 @@ class ClientPaymentFailureObject
|
|||||||
]
|
]
|
||||||
),
|
),
|
||||||
'greeting' => ctrans('texts.email_salutation', ['name' => $this->client->present()->name]),
|
'greeting' => ctrans('texts.email_salutation', ['name' => $this->client->present()->name]),
|
||||||
'message' => ctrans('texts.client_payment_failure_body', ['invoice' => implode(",", $this->invoices->pluck('number')->toArray()), 'amount' => $this->getAmount()]),
|
'content' => ctrans('texts.client_payment_failure_body', ['invoice' => implode(",", $this->invoices->pluck('number')->toArray()), 'amount' => $this->getAmount()]),
|
||||||
'signature' => $signature,
|
'signature' => $signature,
|
||||||
'logo' => $this->company->present()->logo(),
|
'logo' => $this->company->present()->logo(),
|
||||||
'settings' => $this->client->getMergedSettings(),
|
'settings' => $this->client->getMergedSettings(),
|
||||||
'whitelabel' => $this->company->account->isPaid() ? true : false,
|
'whitelabel' => $this->company->account->isPaid() ? true : false,
|
||||||
'url' => route('client.login'),
|
'view_link' => $html_variables['$payment_link'],
|
||||||
'button' => ctrans('texts.login'),
|
'button' => $html_variables['$payment_button'],
|
||||||
'additional_info' => false
|
'additional_info' => false,
|
||||||
|
'company' => $this->company,
|
||||||
];
|
];
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user