You can link the credit note to the invoice by going to the Recieve Payment in QuickBooks Online. It would be my pleasure to walk you through the detailed steps.
Here's how:
Click the New + icon in the upper-right hand corner.
Select Receive Payment.
Choose the customer's name.
In the Outstanding Transactions section, pick the Invoice, then select the Credit Note under Credits.