Run the below SQL Query. The invoice Status will be changed automatically to "Validated"
update ap.ap_payment_schedules_all
set checkrun_id =''
where invoice_id ='57553'-- Give your Invoice_ID
and checkrun_id ='34564'--- Give your Checkrun_ID
Now you cancel the invoice or You can make the Payment for the invoice.
update ap.ap_payment_schedules_all
set checkrun_id =''
where invoice_id ='57553'-- Give your Invoice_ID
and checkrun_id ='34564'--- Give your Checkrun_ID
Now you cancel the invoice or You can make the Payment for the invoice.