@compuit I find it easier to work with tax inclusive numbers that way rounding errors change the distribution between tax and not tax but not the line item total value. Doing it that way decreases reconciliation errors.
This idea would probably also help