From the Admin Dashboard, click Administration and select Accounting.
You would add a refund in exactly the same way as creating an invoice.
Enter details as per usual and then enter a negative quantity, either by clicking the down arrow or typing a minus sign (-) before the number.
This will deduct the credit from your total.
Click + to add another line or x to delete. Click Save when you are done.