Add foreign currnecy total to receipt template

I found [this][1] help doc from V3 but can’t find a way to print the value in the print templates. Any way to do this in V4?

Any help appreciated, thanks

edited to add link to Working with Foreign currencies in V3
[1]: http://doc.sambapos.org/doku.php/en/v3/working_with_foreign_currencies

You can access exchange rate with {EXCHANGE RATE:X} tag so you can multiply it with ticket total or any other value to display amounts with another currency. Please check custom expression samples for more information about making calculations inside templates.

I adjusted the payments section and it’s now as follows::

[PAYMENTS]
<J00>{PAYMENT NAME}|[=FF('{PAYMENT AMOUNT}','#,##0.##')]
<J00>{PAYMENT NAME}|$[=FF('{PAYMENT AMOUNT}/{EXCHANGE RATE:X}','#,##0.##')]

but nothing shows for the $ total line … what am I doing wrong?

Change the X in
{EXCHANGE RATE:X}
To what the name is of the exchange rate. Eg
{EXCHANGE RATE:USD}

… also it will be better to use TN function to fix thousand separators.

For example

[=F(TN('{PAYMENT AMOUNT}')/TN('{EXCHANGE RATE:USD}'),'#,##0.##')]