How can we reversed a payment on AP?

How to cancel a payment in AP that is positive, an advance payment was entered and when applying the payment to the invoice the value entered was doubled, now I cannot cancel the entry, what can I do: