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