SeparatorThousand=' not allowed? Howto enquote? 2 Months, 4 Weeks ago
Karma: 0
[Dolibarr 3.3.1]
In the main.lang, I have set the SeparatorThousand=' (=Aphostrophe).
Dolibarr convert it to the Ampersand character. This looks very ugly on my invoices and creates prices like 1&234.56 instead of 1'234.56
Is there any possibility to enquote this ' sign?
Other special characters, like the similar ` (Grave accent) sign, would work, but are not a real solution.
How can I use the familiar Apostrophe as separator for numbers bigger then 999?
I don't know any other software that has a problem with an apostroph. EVERY sign should be possible using some similar command to the php htmlspecialchars internally
Re: SeparatorThousand=' not allowed? Howto enquote? 2 Months, 3 Weeks ago
Karma: 0
What I found so far:
I can calculate my single products correctly if I use the mentioned ` (Grave accent) sign as SeparatorThousand.
If I change the SeparatorThousand to the desired ' (Apostrophe) and then patch the function price in the function.lib.php with something like this around line 2972
I get the numbers correctly, even in a new calculated PDF invoice.
BUT
As soon as I recalculate a single product, the calculation goes wrong...
There must be an error with this special character ' (Apostrophe, ASCII 39). The function price seems to get a html encoded entity & # 0 3 9 ; instead of the single character '
Dolibarr grade: Yoda.
Thanks to help the project by making a Paypal donation (credit card allowed) using the link "Make a donation" available on right area of Home page: www.dolibarr.org
The administrator has disabled public write access.