1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fix for custom fields in invoice templates

This commit is contained in:
Hillel Coren 2017-01-31 14:28:51 +02:00
parent 4739cc04c3
commit 7e7ee1d749
2 changed files with 5 additions and 5 deletions

View File

@ -58,10 +58,10 @@ class TemplateService
'$viewButton' => Form::emailViewButton($invitation->getLink(), $invoice->getEntityType()).'$password',
'$paymentLink' => $invitation->getLink('payment').'$password',
'$paymentButton' => Form::emailPaymentButton($invitation->getLink('payment')).'$password',
'$customClient1' => $account->custom_client_label1,
'$customClient2' => $account->custom_client_label2,
'$customInvoice1' => $account->custom_invoice_text_label1,
'$customInvoice2' => $account->custom_invoice_text_label2,
'$customClient1' => $client->custom_value1,
'$customClient2' => $client->custom_value2,
'$customInvoice1' => $invoice->custom_text_value1,
'$customInvoice2' => $invoice->custom_text_value2,
'$documents' => $documentsHTML,
'$autoBill' => empty($data['autobill'])?'':$data['autobill'],
'$portalLink' => $invitation->contact->link,

View File

@ -148,7 +148,7 @@
<li>$customInvoice1</li>
@endif
@if ($account->custom_invoice_text_label2)
<li>$customInvoice1</li>
<li>$customInvoice2</li>
@endif
@if (count($account->account_gateways) > 0)
@foreach (\App\Models\Gateway::$gatewayTypes as $type)