invoiceninja / invoiceninja

Invoices, Expenses and Tasks built with Laravel, Flutter and React

Home Page:https://invoiceninja.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

bb5ace1afde26e6dc465372c0b06701f1df15d3c_2_608x499

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