Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
6032 Переглядів

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!

Аватар
Відмінити

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.

Найкраща відповідь

you can try this

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
груд. 24
576
3
трав. 24
1310
1
лют. 24
3135
1
груд. 23
1522
2
квіт. 23
1574