Invoice miscalculations with comma as decimal separator (v5.2.19-C58)

I am setup as Canada - CAD but I had to alter the database so that the currency display matches the French Canadian display standard (space thousand separator, comma decimal separator, dollar sign on the right with a space before)

image

I reverted all of my Canadian clients to the default (blank) country though, as there was a conflict between the hardcoded country settings and my custom currency settings that made the commas appear as periods on the PDFs (as discussed here: Invoice currency display on PDFs do not match admin panel currency display (v5.2.11-C53) - Discourse (invoiceninja.com))

All of my clients (for now) are also setup to use the default currency, but for testing purposes if I setup the client I’m currently invoicing with the USD currency, the rounding errors in the admin panel still happen:

Admin:

image

PDF

image

And commas as decimal separators (instead of the standard period) are still interpreted by IN regardless of the USD currency setting, and the line total rounding is still not correct, so I’m not sure the issue is directly related to the chosen currency: