Invoice footer not working

Hi
I just upgraded to version 1.6.3 from 1.6.1.
The footer no longer shows on the invoice. The invoice now displays the invoice number and a page count. eg “Invoice 3190 - Page 1 / 1”
Is there something I am doing incorrectly or am missing.
Thank you for your assistance.

1 Like

Hey,

Probably this one: 1.6.3 introduces a new html footer. If this is omitted, an error occurs · Issue #1299 · InvoicePlane/InvoicePlane · GitHub

Or this one:

Workaround: manually add that footer that 1.6.3 added.

I’m not at my PC at the moment, but if someone can debug this that would be great

1 Like

Thanks. I will give it a try and revert with an answer.

1 Like

This workaround did the trick for now.
I however did not place my code in the footer, but used the div that contains the invoice terms.
Thanks for the quick support. Much appreciated.

2 Likes

For future reference: this issue has been solved and the bugfix is being rolled out in v 1.6.4. For the solution see the pull request related to this issue: [Verony]: PDF Pagination: none of the code in this setting is displayed in the footer of the pdf · Issue #1290 · InvoicePlane/InvoicePlane · GitHub

2 Likes

For those who also have this issue.

Add following code at the bottom of application/views/quote_templates/pdf/InvoicePlane.php

?>
</div>

<htmlpagefooter name="footer">
    <footer>
        <?php _trans('quote'); ?> <?php echo $quote->quote_number; ?> - <?php _trans('page'); ?> {PAGENO} / {nbpg}
    </footer>
</htmlpagefooter>
<sethtmlpagefooter name="defaultFooter" value="on" />
<!-- To use the template with page numbering, uncomment the following line -->
<!-- <sethtmlpagefooter name="footerWithPageNumbers" value="on" /> -->
</body>
</html>

application/views/invoice_templates/pdf/InvoicePlane.php

</div>

<htmlpagefooter name="footer">
    <footer>
        <?php _trans('invoice'); ?> <?php echo $invoice->invoice_number; ?> - <?php _trans('page'); ?> {PAGENO} / {nbpg}
    </footer>
</htmlpagefooter>
<sethtmlpagefooter name="defaultFooter" value="on" />
<!-- To use the template with page numbering, uncomment the following line -->
<!-- <sethtmlpagefooter name="footerWithPageNumbers" value="on" /> -->
</body>
</html>

and last:

application/helpers/mpdf_helper.php

Take an extremely close look at the changes from the pull_request from naui. He made some changes in a couple of places in the mpdf_helper file

This solved the footer note (html) settng and is now back visbile on both my quotes and invoice pdf.