Unapplied Payment - Invoice shows paid

I solved this by manually editing the SQL table, several payments subsequent to this payment were processed without trouble.