Issue with logging payments

I have just logged a payment for an invoice, but it is still showing as unpaid in the Outstanding Invoices screen. If I click on the client’s account it is showing an unallocated credit for the amount involved, but if I try to pay the invoice with the credit it says the invoice has already been paid. Please help!

I’ve located your account, which invoice number are you referring to?