In Haibooks, you can allocate a Credit Note to an invoice.
How to Allocate a Credit Note ?
First, you must click on Sales form the side bar menu and then Invoices from the drop-down menu.
Select the credit note you wish to allocate.
Click on the button with three dots and then on Allocate Credit Note.
Enter the amount you want to allocate to the corresponding invoice.
Click on Save when you are happy with the amounts allocated.