If you refund/partially refund a customer money, you should set the category on that transaction to “Client Refund”. You will then be able to input the relevant VAT amount. This will appear as negative in the VAT tool, as it is money you were going to give/have given to HMRC, but as you have now refunded the money to the customer, you are reversing that transaction.