I am trying to overwrite tax amount calculated at line item level with the amount passed in header level.
e.g At header level info contains:
Gross Amount: 121
At line item 1:
Tax Code: X1 (17.5%)
At line item 2:
Tax Code: X2(20%)
Now when I simulate the system gives me a warning that the correct tax amount is 7 and 12 and not 7.74 and 13.26. When I press enter the values 7.74 and 13.26 are accepted.
Appreciate if anyone can guide me how the values 7.74 and 13.26 are calculated.
I have attached a doc for reference.