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 = [
|
public static $variableFields = [
|
||||||
'footer',
|
'footer',
|
||||||
'account',
|
'account',
|
||||||
|
'dueDate',
|
||||||
|
'invoiceDate',
|
||||||
'client',
|
'client',
|
||||||
'amount',
|
'amount',
|
||||||
'contact',
|
'contact',
|
||||||
'firstName',
|
'firstName',
|
||||||
'invoice',
|
'invoice',
|
||||||
'quote',
|
'quote',
|
||||||
'dueDate',
|
|
||||||
'viewLink',
|
'viewLink',
|
||||||
'viewButton',
|
'viewButton',
|
||||||
'paymentLink',
|
'paymentLink',
|
||||||
@ -234,13 +235,14 @@ class ContactMailer extends Mailer
|
|||||||
'$footer' => $account->getEmailFooter(),
|
'$footer' => $account->getEmailFooter(),
|
||||||
'$client' => $client->getDisplayName(),
|
'$client' => $client->getDisplayName(),
|
||||||
'$account' => $account->getDisplayName(),
|
'$account' => $account->getDisplayName(),
|
||||||
|
'$dueDate' => $account->formatDate($invoice->due_date),
|
||||||
|
'$invoiceDate' => $account->formatDate($invoice->invoice_date),
|
||||||
'$contact' => $invitation->contact->getDisplayName(),
|
'$contact' => $invitation->contact->getDisplayName(),
|
||||||
'$firstName' => $invitation->contact->first_name,
|
'$firstName' => $invitation->contact->first_name,
|
||||||
'$amount' => $account->formatMoney($data['amount'], $client),
|
'$amount' => $account->formatMoney($data['amount'], $client),
|
||||||
'$invoice' => $invoice->invoice_number,
|
'$invoice' => $invoice->invoice_number,
|
||||||
'$quote' => $invoice->invoice_number,
|
'$quote' => $invoice->invoice_number,
|
||||||
'$link' => $invitation->getLink(),
|
'$link' => $invitation->getLink(),
|
||||||
'$dueDate' => $account->formatDate($invoice->due_date),
|
|
||||||
'$viewLink' => $invitation->getLink(),
|
'$viewLink' => $invitation->getLink(),
|
||||||
'$viewButton' => HTML::emailViewButton($invitation->getLink(), $invoice->getEntityType()),
|
'$viewButton' => HTML::emailViewButton($invitation->getLink(), $invoice->getEntityType()),
|
||||||
'$paymentLink' => $invitation->getLink('payment'),
|
'$paymentLink' => $invitation->getLink('payment'),
|
||||||
|
@ -1141,6 +1141,7 @@ return array(
|
|||||||
'all_pages_header' => 'Show header on',
|
'all_pages_header' => 'Show header on',
|
||||||
'all_pages_footer' => 'Show footer on',
|
'all_pages_footer' => 'Show footer on',
|
||||||
'invoice_currency' => 'Invoice Currency',
|
'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 = [
|
var vals = [
|
||||||
{!! json_encode($emailFooter) !!},
|
{!! json_encode($emailFooter) !!},
|
||||||
"{{ $account->getDisplayName() }}",
|
"{{ $account->getDisplayName() }}",
|
||||||
|
"{{ $account->formatDate($account->getDateTime()) }}",
|
||||||
|
"{{ $account->formatDate($account->getDateTime()) }}",
|
||||||
"Client Name",
|
"Client Name",
|
||||||
formatMoney(100),
|
formatMoney(100),
|
||||||
"Contact Name",
|
"Contact Name",
|
||||||
"First Name",
|
"First Name",
|
||||||
"0001",
|
"0001",
|
||||||
"0001",
|
"0001",
|
||||||
"{{ $account->formatDate($account->getDateTime()) }}",
|
|
||||||
"{{ URL::to('/view/...') }}",
|
"{{ URL::to('/view/...') }}",
|
||||||
'{!! HTML::flatButton('view_invoice', '#0b4d78') !!}',
|
'{!! HTML::flatButton('view_invoice', '#0b4d78') !!}',
|
||||||
"{{ URL::to('/payment/...') }}",
|
"{{ URL::to('/payment/...') }}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user