Hi dear reader,
On our 'ancient' on premise 8.2 system we're struggling with this issue.
System calculates the invoice tax by calculating the sum all individual invoice lines which isn't always the same as the calculation of tax on invoice level.
Example:
two invoice lines with baseamounts 112,50, tax 21%
Each line has tax of 23,63 (rounded from 23,625), giving a totaltax on the invoice of 47,26.
Requirement is that tax is calculated on invoice level, so 21% of 225 = 47,25.
How to accomplish this? I can have a plugin overwrite the totaltax on the invoice, but everytime the invoice is loaded, it's overwritten immediately with the system calculation. If I turn off the system price calculation, the calculation of invoicelines stops which isn't desirable either.
It would be perfect if I'd just set the decimals of the invoice line tax fields to 4, but when I do, it still is filled in rounded.
Any ideas?
Thanks,
Jeroen