Hello terry13,
Welcome to the Community.
QuickBooks can record VAT based on the entered transactions. Please see the full detailed steps in this article: How to record a VAT payment or refund [Video]
To previous transactions, you might want to enter them using Journal Entry. I'd suggest asking for more help from your accountant on which accounts to select. This way, you'll have them posted to the right account.
If you have more questions, please let us know. Thanks!