Importing Tax on an invoice such as from ecommerce where it is automated works fine.
When importing a Tax amount, it posts the tax to the Account Code in the Tax Status. Check the Customer card for the Tax Status assigned and the required Account Code.
Importing Tax overrides normal calculation of sales tax, ignoring Rates and calculations. If an Account Code is not assigned, then the imported tax amount will be reset to zero.