Closed paddatrapper closed 2 weeks ago
Hi... Does this variable work in any version of Dolibarr?
I'm not sure
Hi, has any one found a fix for this as yet?
Still present
A potential solution here would be to add another formatted variable with no currency, then the user can add the currency in the template in the correct location. __AMOUNT__
does not work here, as it does not round to the required number of decimal places (123.00000000 is not really helpful to the client).
The new variable could be used as:
R __AMOUNT_EXCL_CURRENCY_FORMATED__
Which would then render as R 123.45
It is still present
Still present
Same in es_CL locale, the correct formatting should be $ 109.862, while, the variable is substituted as $109862.00000000 Env
Version: 18.0.3
OS: CloudLinux 3.10.0-962.3.2.lve1.5.81.el7.x86_64
Web server: Apache
PHP: 7.2
Database: MySQL or MariaDB 10.6.16-MariaDB-cll-lve
Works fine on version 19 PHP: 8.1 es_MX
It's correct on develop (version 21)
Setup -> Company/Organization :
Setup -> Display :
Setup -> emails -> email templates :
New commercial proposal :
It's also good es_CL with dollards currency
The
__AMOUNT_FORMATED__
variable substitution incorrectly places the currency symbol after the amount. In en_ZA locale, the correct formatting should be R 23,000.00, while, the variable is substituted as 23,000.00 R. This is also an issue within the UI, where pop-ups and other places where formatted amounts are shown (For example the invoice card).Environment