If you have the original invoice, you can create a credit note from the invoice itself - take a look at the guide I linked to above. The guide does show the client’s side of things, but the supplier side is very similar.
You can chose for this to sit on the suppliers account:
And then you can pay the invoice off using the credit held on their account: