This guide explains how to create a credit note with custom amounts and items. Alternatively, you can also create credit notes directly from an invoice.
Navigate Sales > Credit notes.
Click on the Create credit note button.
Fill in the details of the credit note form and click the Save button.
Once the credit note has been created it can be applied to any unpaid customer invoice.