New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rounding errors with VAT calculations #4460
Comments
Not sure if it's proper form to follow-up on an older issue, but wanted to add my wish for a fix. We are also experiencing the issue, with smaller amounts getting rounded up, per line, to two decimals. Which then creates the wrong total VAT. If we change to three decimals, the total VAT is correct, but we have too many decimals for PDF outputs. If you have three items: €97.50 And VAT is 19%, you would get VAT: €18.525 Which adds up to: Price: €195 But with "Currency Significant" set to 2, it rounds each line item, so VAT becomes: €18.53 Total VAT: €37.06 The VAT amount is off by €0.01. Ideally, we'd like a way to set admin calculations to use a "Currency Significant" of 5, but keep the decimals to 2 on the invoice output. Is that possible? |
In case it can help someone, we had someone help us fix this - at least in a way that works for us https://suitecrm.com/suitecrm/forum/suitecrm-7-0-discussion/18559-rounding-vat-on-invoice-total#65548. |
Hi. this is still a bug and nearly everyone of our quotes is off by a cent. Our sales tax is 8.875% which rounds to 8.88% which makes some quotes off by .1 Makes reconciling invoices a nightmare and we just discovered this in Oct. The fix looks interesting. Right now we set 3 digit currency but it looks like we are crazy when we send a quote like this. |
Hi @mgx1020 in case it's the same issue that we had, then it might be worthwhile trying the file override fix I link to above? For us this works, at least for invoices, which is what we use. It rounds correctly, but still only shows two digits on invoices. |
@karlsan works like a charm, took me a bit to find the bitnami structure .. ended up editing the main file via SSH and then copying it over to /custom /opt/bitnami/apps/suitecrm/htdocs/modules/AOS_Products_Quotes/line_items.js cp to /opt/bitnami/apps/suitecrm/htdocs/custom/modules/AOS_Products_Quotes/line_items.js Tested on quotes, it works great, I imagine invoices will be similar |
Issue
The VAT total is off due to rounding errors.
I'm not sure how/if this relates to #1234.
Expected Behavior
VAT total should be "342,05 €".
Actual Behavior
VAT total is "342,06 €", which is off by 0.01 €.
Possible Fix
The workaround suggested in https://salesagility.com/index.php/forum/8-aos-5x/2548-vat-calculation (setting 3 significant currency digits) still works.
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: