Reverse charge

Normally the seller collects the tax and pays it. Under reverse charge, the buyer pays it directly instead.

Software that already does this

Aned Book works the tax out from the bill you are raising, so none of the above is a decision anybody has to make at a busy counter.