variable x varialbe in HTML

Hello all,

I am new to Ninja and have my trial time. my first thing to do is to custom invoice template to match my company requirement. and i am having issue like this

$invoice.total * “exchange_rate”: 1
or
$invoice.total * $invoice.custom1
. or
{{ $invoice.total * $invoice.custom1 }}
. I tried search support and tried many ways but no luck. Thank you for your help

Hi,

I believe you can use math in custom templates however you can’t use it to affect the invoice total.

https://invoiceninja.github.io/en/templates/

Hi Hillel, thank you for your link. However i am not trying to change total. just show two currencies base on tax law only.

Thanks, understood. In that case templates may work for you.

It dose not, can you help advise please? {{ $invoice.total * $invoice.custom1 }} also not working

Are you using a custom template and inside a ninja tag?