Hi,
I'm trying to calculate tax for the sales line via code in order to get exactly the same value from the financials menu /salestax/ button on salestable form
I need to get the for this line 18.41. Under the hood class TAX os working to calculate this value and the value in the calculations is 18.406666666 which is rounded to 18.41 by the system.
I have found 2 ways to calculate tax for the line via code. they are described here
using both of them I get 18.4034 value which is rounded to 18.4 and I need 18.41 exactly as it is on the form after clicking sales tax button.
Before diving into the very heavy code of the TAX class maybe there is something important I miss out?
Thanks.