I created an AL extension for NAV 2018 that calculates tax. The tax engine I use to calculate tax works differently than the built in tax calculation which is why I am in sense overriding the built in tax calculation.
I am able to make a HTTP request which sends Header and Line information and I get back valid tax details that I save back to the line (VAT %, Line Amount Incl. VAT, etc.). It is all working correctly except for when I go to post a sales order. It seems that the G/L is out of balance when I manually update lines and headers with my tax details. What fields would I need to populate on the line level that will correctly balance the G/L using my own tax calc engine?