Every taxable sale adds its tax to Sales tax payable. The balance on a date is what the shop owes the Alder Falls Revenue Office for sales up to that date, less what it has paid. The Sales tax screen shows the tax charged in each monthly filing period and what was owed at each period's end.
Some customers don't pay sales tax: a school or a charity with an exemption certificate, or a reseller. Keep the certificate on file and untick Tax on their lines (in the real product you can also mark the customer exempt). Don't make the product non-taxable: everyone else still owes the tax.
A return on a credit memo gives the tax back too, so the liability goes down by the tax on the returned items.