I know why it didn’t work. I am using a different invoice template which I created ages ago and which is very far from what the current invoice plance template is. I tried to add it as such but that didn’t work either. I’m going to manually edit that and then wait until 1.6.4 is released to see how to handle the problem.
Thank you.
Really a big thank you for the follow up. So my ‘old’ custom template is no longer ok. I’m fine with that.
I thought of using the current default template, see how it looked and then re-make a custom template based on that.
In the current default template, the footer part added in settings also doesn’t appear. I also uncommented the page number to see if it appeared and it does not. So maybe I am not editing the right files?
I have 3 files in total in the pdf folder:
InvoicePlane.php
InvoicePlane - paid.php
InvoicePlane - overdue.php
Invoice Plane itself has 4 options for invoices:
Draft
Sent
Viewed
Paid
I only download the Sent version. Is that the InvoicePlane.php file then?
Secondary question: Do I need to make a new invoice each time I modify the php file and editing/saving/downloading the PDF version is updated automatically based on the updated php file?
Take a template of 1.6.2 and compare it with your template.
I’ve seen some users use the 1.6.2 template until 1.6.4 comes out
See if you make it work thag way.
1.6.2 uses the old footer and that should still work.
Second option is to look really closely at that PR i gave you. It’s there for a reason.
It haa changes in the helper that helps the PDF generator with that new footer
I don’t think you need to make new invoices every time.
There is only 1 file: “template.php” or in your case “custom.php”
Those statuses of the invoice don’t matter.
If you only want to download “sent” invoices, just mark it as “sent”.
If you can’t do that through the UI, do it through the database. Field name is “invoice_status”, i believe.
Personally i would test things out with “draft” invoices.
“custom.php” with the new footer and the changes from the PR is your best bet.
it has a tiny, tiny change in the template and a bigger change in the helper.
It just crashes (and logs!) When things go wrong.
Keep your test invoice at “draft” status and just keep trying.
There’s a program called “meld” to compare 2 files (or directories) with each other.
Each InvoicePlane version has a .zip file. It’s always on github in the “releases” section or on InvoicePlane’s website.
Download .zip (of for example 1.6.2), unzip and compare with your InvoicePlane version