I've got some information regarding why your sales tax will be erased if you erase a late fee, LUCY76.
In QuickBooks Online (QBO), when you erase a late fee from an invoice, the sales tax might also be erased because the late fee and the sales tax are linked to the original invoice. When you remove the late fee, it can affect the calculations associated with the invoice, including the sales tax.
The Sales Tax will be based per item. If you remove it, it will also remove the tax of your late fee.
However, if the other line items are affected as you delete the late fee, I recommend using a private browser. This way, it will rule out any browsing history or cached files causing the problem. Here are the shortcut keys for accessing private browsers:
If you have further questions regarding late fees and sales tax, please enter your concerns in the comment section so that we can help you. Have a great day.