This Invoice has a payment linked to it so the balance should decrease by the paid amount.

When i was trying to create a payment for the remaining amount the below error arise;

Is this something to do with that bad debt reason code, but there is no write off amount.
I tried to reverse the payment done as well but it wont allow me to do it. same error occurs.
Could you please help if you’ve experienced same issue.
