What happens to tax when invoices are written off?

When you write off invoices, the tax becomes a null value and the accounts receivable (A/R) has the tax removed from it.