To credit an invoice, go to the tab Printed invoices. Find the invoice and click on ”Reverse”. A similar invoice is created, but in credit.