Money received but invoice still shows overdue

I have made a rookie mistake but can’t workout myself how to fix it. Can you please give me some pointers?

(Also I have done the bank reconciliation with zero discrepancies- if this is relevant.)

I followed below post but couldn’t resolve my issue. I’m not sure whether I have messed up the entry dates.
Thank you.


RECEIPT:

SALES INVOICE

Please select account receivable instead sales account.

Thank you, That fixed the problem.