Variable missing only in Invoice template

Hello,

In Email Setting, I set the main email template with this variable:
$entity $number
vom $date is da

Output from email template für “Invoice”:
Rechnung RE-0001 vom 22.05.2024 ist da

Output from email template “payment”:
0001 vom $date ist da

In “payment” template, the variable $entity not showing Label for the term, and the $date variable just showing " $date" instead of the date.

Is there any idea why its happening?
It’s only happened to payment template, another templates working flawesly.

Best Regard
Ade

Hi,

Here are the two different sections of the docs for variables.

PDF: Free Source Available Invoicing, Expenses & Time-Tracking | Invoice Ninja
Email: Free Source Available Invoicing, Expenses & Time-Tracking | Invoice Ninja

Hi Hillel, thank you for your reply.
Yes it’s for the email template.
$date is not listed in the basic list of a payment variable but it still working in the email template.

Here are 3 examples.For Invoice and Quote, these variables work, but not for the Payment:
But because of limitation for new user, I will post another 2 Screenshot in another reply.

Here, all variables work normally

Here $entity is not shown, $number is correct (0001), $date shows the variable itself instead of the actual date.

Do I miss something in the configuration?

Here, all variables work normally

I’m not sure $date is supported in the email templates, feel free to create an issue to request it.

Yes it’s work in all email templates except payment’s template.

How about $entity? why it’s not display anything in payment template? In another templates, It’s showing the term normally.

@david can you please advise?

I’ve checked and the docs here are up to date:

$entity will only return a label Payment

to access the $invoice/$invoices you’ll want to see the docs where we define the different invoice layouts for the payment emails.