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

Merge pull request #4446 from beganovich/v5-support-for-entity-footers

(v5) Support for entity strings on PDFs
This commit is contained in:
Benjamin Beganović 2020-12-08 16:51:09 +01:00 committed by GitHub
commit 76b6fe4979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 12 additions and 10 deletions

View File

@ -307,7 +307,7 @@ class HtmlEngine
$data['$task.date'] = ['value' => '', 'label' => ctrans('texts.date')];
$data['$task.discount'] = ['value' => '', 'label' => ctrans('texts.discount')];
$data['$task.product_key'] = ['value' => '', 'label' => ctrans('texts.product_key')];
$data['$task.service'] = ['value' => '', 'label' => ctrans('texts.service')];
$data['$task.description'] = ['value' => '', 'label' => ctrans('texts.description')];
$data['$task.rate'] = ['value' => '', 'label' => ctrans('texts.rate')];
$data['$task.hours'] = ['value' => '', 'label' => ctrans('texts.hours')];
@ -343,6 +343,8 @@ class HtmlEngine
$data['$item'] = ['value' => '', 'label' => ctrans('texts.item')];
$data['$description'] = ['value' => '', 'label' => ctrans('texts.description')];
$data['$entity_footer'] = ['value' => $this->client->getSetting("{$this->entity_string}_footer"), 'label' => ''];
// $data['custom_label1'] = ['value' => '', 'label' => ctrans('texts.')];
// $data['custom_label2'] = ['value' => '', 'label' => ctrans('texts.')];
// $data['custom_label3'] = ['value' => '', 'label' => ctrans('texts.')];

View File

@ -206,4 +206,4 @@
<table id="delivery-note-table" cellspacing="0"></table>
</div>
<div id="footer"></div>
<div id="footer">$entity_footer</div>

View File

@ -248,4 +248,4 @@
<table id="delivery-note-table" cellspacing="0"></table>
</div>
<div id="footer"></div>
<div id="footer">$entity_footer</div>

View File

@ -189,4 +189,4 @@
<table id="delivery-note-table" cellspacing="0"></table>
</div>
<div id="footer"></div>
<div id="footer">$entity_footer</div>

View File

@ -213,4 +213,4 @@
<table id="delivery-note-table" cellspacing="0"></table>
</div>
<div id="footer"></div>
<div id="footer">$entity_footer</div>

View File

@ -217,5 +217,5 @@
<p class="thanks-label">$thanks_label!</p>
<hr class="double-border"/>
<div id="footer"></div>
<div id="footer">$entity_footer</div>

View File

@ -243,4 +243,4 @@
<table id="delivery-note-table" cellspacing="0"></table>
</div>
<div id="footer"></div>
<div id="footer">$entity_footer</div>

View File

@ -217,7 +217,7 @@
<div style="margin-top: 195px"></div>
<div class="footer-wrapper" id="footer">
<div class="footer-content">
<div></div>
<div>$entity_footer</div>
<div id="company-details"></div>
<div id="company-address"></div>
</div>

View File

@ -162,4 +162,4 @@
<table id="delivery-note-table" cellspacing="0"></table>
</div>
<div id="footer"></div>
<div id="footer">$entity_footer</div>

View File

@ -231,5 +231,5 @@
<table id="delivery-note-table" cellspacing="0"></table>
</div>
<div id="footer"></div>
<div id="footer">$entity_footer</div>