mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Added invoiceDate as email template variable
This commit is contained in:
parent
a584973eea
commit
cc49415a78
@ -19,13 +19,14 @@ class ContactMailer extends Mailer
|
||||
public static $variableFields = [
|
||||
'footer',
|
||||
'account',
|
||||
'dueDate',
|
||||
'invoiceDate',
|
||||
'client',
|
||||
'amount',
|
||||
'contact',
|
||||
'firstName',
|
||||
'invoice',
|
||||
'quote',
|
||||
'dueDate',
|
||||
'viewLink',
|
||||
'viewButton',
|
||||
'paymentLink',
|
||||
@ -234,13 +235,14 @@ class ContactMailer extends Mailer
|
||||
'$footer' => $account->getEmailFooter(),
|
||||
'$client' => $client->getDisplayName(),
|
||||
'$account' => $account->getDisplayName(),
|
||||
'$dueDate' => $account->formatDate($invoice->due_date),
|
||||
'$invoiceDate' => $account->formatDate($invoice->invoice_date),
|
||||
'$contact' => $invitation->contact->getDisplayName(),
|
||||
'$firstName' => $invitation->contact->first_name,
|
||||
'$amount' => $account->formatMoney($data['amount'], $client),
|
||||
'$invoice' => $invoice->invoice_number,
|
||||
'$quote' => $invoice->invoice_number,
|
||||
'$link' => $invitation->getLink(),
|
||||
'$dueDate' => $account->formatDate($invoice->due_date),
|
||||
'$viewLink' => $invitation->getLink(),
|
||||
'$viewButton' => HTML::emailViewButton($invitation->getLink(), $invoice->getEntityType()),
|
||||
'$paymentLink' => $invitation->getLink('payment'),
|
||||
|
@ -1141,6 +1141,7 @@ return array(
|
||||
'all_pages_header' => 'Show header on',
|
||||
'all_pages_footer' => 'Show footer on',
|
||||
'invoice_currency' => 'Invoice Currency',
|
||||
'enable_https' => 'We strongly recommend using HTTPS to accept payments online.'
|
||||
'enable_https' => 'We strongly recommend using HTTPS to accept credit card details online.',
|
||||
|
||||
|
||||
);
|
||||
|
@ -203,13 +203,14 @@
|
||||
var vals = [
|
||||
{!! json_encode($emailFooter) !!},
|
||||
"{{ $account->getDisplayName() }}",
|
||||
"{{ $account->formatDate($account->getDateTime()) }}",
|
||||
"{{ $account->formatDate($account->getDateTime()) }}",
|
||||
"Client Name",
|
||||
formatMoney(100),
|
||||
"Contact Name",
|
||||
"First Name",
|
||||
"0001",
|
||||
"0001",
|
||||
"{{ $account->formatDate($account->getDateTime()) }}",
|
||||
"{{ URL::to('/view/...') }}",
|
||||
'{!! HTML::flatButton('view_invoice', '#0b4d78') !!}',
|
||||
"{{ URL::to('/payment/...') }}",
|
||||
|
Loading…
x
Reference in New Issue
Block a user