Wrong calculation for the sum of 2 x 999?

If I add two entries with the base price of 999 to an invoice, the (german) summary looks like this: Gesamtpreis 1.00 MwSt. 8% -1&996.00 Bruttosumme 2.00The Total (net of tax) amount, the minus prefix, the & instead of ’ and the Total (inc. tax) acount is wrong. Changing the default language to en_US calculates this result: Total (net of tax) 1.00 Total tax 8% -1,996.00 Total (inc. tax) 2.00

Could my change in the main.lang to the german syntax be the reason for the calculation problem? SeparatorDecimal=. SeparatorThousand=' FormatDateShort=%d.%m.%Y FormatDateShortJava=dd.MM.yyyy FormatDateShortJQuery=dd.MM.yy FormatDateHourShort=%d.%m.%Y %H:%M

Surprisingly, an Invoice with ‘smaller’ prices for single entries works like expected and with the perfect calculation: Gesamtpreis 382.80 MwSt. 8% 30.63 Bruttosumme 413.43

Maybe this screen can help?

Hi,

Oops !! that’s weird… which Dolibarr version are you using ?

Rgds.

Version 3.3.1

Oh I see… hope someone else will help you

Have a good day.

did you try to escape those symbols with a \ or / before it “maybe” ?

Unfortunately, escaping with \ or \ or / or // doesn’t help.

The fix for the use of ’ (Apostrophe) as SeparatorThousand fixed this calculation problem too!

The sum is now calculated as expected. Thank you, eldy!