How to record a check returned for nsf

How to record a check returned for nsf

A customer had given me a check to pay for an invoice due. I deposited the check and matched the transaction on my banking feed.

A few days later I see a charge for the returned check (they had issues with their bank account). They reissued me a check and I have deposited it to include the NSF charge from my bank, but I have not been able to figure out how to associate the Check Return transaction to the same invoice and account for the new check deposited.

Any help?