SOLVED: Error about rounding Vat in crabe

Hi,
I have a problem with rounding vat with crabe template. Well, the datails on the screen are correct, but when I genearte the invoice and I open it the decimal rounding of Vat is not correct.
I found that it is correct if I charge the products with the sales price including Vat, but it is not possible for us, we must charge the sales price without vat

Can you help me please?
Thank you in advance
Gio

Hello

Thanks for posting. You have posted your issue in the How To | Help section.

Kindly post (here) your full Dolibarr setup environment as suggested in the [url=www.dolibarr.org/t/post-guidelines/16873/1 Guidelines[/url]. This will greatly help the community in assisting you where possible by providing any hints from your current configuration.


To improve Dolibarr community engagement, you are also strongly advised to update your profile details to include your location and gender.

Thank you
we are using Dolibarr 8.0.3
After the upgrade to 8.0.3 the error is this one:
befor Vat 1311,48 €
Vat 288,53 €
Total 1 600,01 €
The total is correct but we charged the product with the final price so it should be:

Total 1600 €
Vat 288,52€
Without Vat 1311,48

I setted the roundig to 2 decimals but I can’t solve the problem.

Thank you
Giovanni

Hi. Thank you for the help.
I solved the error. I setted 2 decimals for everything, I changed to 8 decimals for the first two options and two for the third.
Now it works perfectly
Thank you
Giovanni