Whats the proper method to undo a non posted invoice to unrecieve a receipt?

Our receiver was given incorrect information and we received way more than we physically did. The accounting team noticed this when they created invoices for a partial amount of the received qty but noticed that there was still an excess amount open.

What are the proper steps to “undo” an invoice so it is removed from the receipt and i can un-receive the receipt entry to correct it?