Customer partially paid an invoice but the bank refunded the amount back to the customer

Customer partially paid an invoice but the bank refunded the amount back to the customer

Example:

Invoice is $10,000
Customer partial payment for invoice is $2000
The $2000 shows up in the uncategorized transaction bank feed.
I matched the payment from customers invoice and the transaction.

A few days go by. Not sure why the bank refunded the money.
Now there is a $2000 refund in the  uncategorized transaction bank feed.

So how do I handle this type of refund for the invoice and match it to the refund in the uncategorized transaction bank feed?