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
emre
May 29, 2014, 8:42am
2
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.
slabos
May 31, 2014, 10:16pm
3
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?
JohnS
May 31, 2014, 11:33pm
4
Change the X in
{EXCHANGE RATE:X}
To what the name is of the exchange rate. Eg
{EXCHANGE RATE:USD}
emre
June 1, 2014, 9:46am
5
… also it will be better to use TN
function to fix thousand separators.
For example
[=F(TN('{PAYMENT AMOUNT}')/TN('{EXCHANGE RATE:USD}'),'#,##0.##')]