I am using an external system to calculate taxes on sales documents. I make use HTTP requests to send header and line info and I get back valid tax details that I then store back on the header and line level. I have everything working except for when I go to post documents. I get an error that the G/L is out of balance. I currently just change the line level VAT % and Line Amount including VAT. I completely bypass the built in functionality that uses the Tax Groups and Jurisdictions to calculate tax. The posting routine still uses those Tax Groups to try and find tax information which is why the data isn't matching.
Anybody have a good idea of what I need to update so the GL entries are in balance when I manually update sales line tax details?