Sales Invoice still show overdue or unpaid after adjusting in Journal Entry

Hi All, I have an issue with sale invoice not changing status to paid after adjustment is made in Journal Entry. I have a outstanding sales invoice. I agree with customer that the outstanding invoice can be adjusted with deposit that customer placed with me. So I make adjustment in Journal Entry by Credit the receivable account the same as the one I used in Sales Invoice and also link the sale invoice number in that Journal Entry. After submit, the status of sales invoice does not change. It still show overdue status.

Do you know who to fix this?