Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
6038 Zobrazení

For sales orders, purchase orders, and invoice emails the total amount doesn't round to 2 digits each time like it should. We are sending invoices that indicate a dollar value of $1,000.1 is owed for instance instead of $1,000.10 which would be the proper format.

What is the appropriate syntax to edit these templates to get the rounding correct? I've set up the decimal accuracy already but that doesn't fix this. I've tried round() and formatLang() inside the {$ } but that isn't working.

Thanks!

Avatar
Zrušit

I have this same issue - anyone figure out how to get the 2 decimal places to show? It shows correctly in the actual invoice but not in the email template... Thanks!

I have this same issue, also in official screen shots.

Nejlepší odpověď

you can try this

${format_amount(object.amount_total, object.currency_id)}

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
pro 24
584
3
kvě 24
1314
1
úno 24
3148
1
pro 23
1526
2
dub 23
1575