You need to allocate the Supplier Payment into Supplier Invoice to knock-off the payment.
You need to define Supplier Credit Note for goods returned.
You need to define Supplier Debit Note for products undercharged, underpricing or etc from supplier.