Make variables available in all default footers
itsaw opened this issue · comments
Setup
- Version: v5.8.57
- Environment: ZIP
Interface
- Flutter: []
- React: []
- Both: [x]
Checklist
- Can you replicate the issue on our v5 demo site https://demo.invoiceninja.com or https://react.invoicing.co/demo?
Yes - Have you searched existing issues?
Yes - Have you reported this to Slack/forum before posting?
Yes, show https://forum.invoiceninja.com/t/pdf-generation-ignores-variables-from-invoice-footer-standard/16128 - Have you inspected the logs in storage/logs/laravel.log for any errors?
No
Describe the bug
When accessing custom fields in the footer (invoice, order, quote), these are ignored when generating the PDF.
For example, my default invoice footer:
Bank details: $company.custom3
IBAN $company.custom1 - BIC $company.custom2
VAT ID: $company.vat_number
If I put these in the terms, it is translated correctly.
Steps To Reproduce
- Create the custom fields (here IBAN, BIC, bank name of the company)
- Create the standard footer
- Create an invoice
Expected Behavior
I expected the custom fields to be resolved when the PDF is generated and my invoice footer to be displayed accordingly
Additional context
Screenshots
We support the variables in the public notes and terms section. because of the performance penalty of this particular operation we have limited the scope of variables inside other areas.
The work around here would be to embed the variables directly in the design