Sales Invoice Status Issue (Overdue)

I have submitted an invoice (amount 4000) then created payment entry with same amount (4000). After submitting payment entry normally OUTSTANDING AMOUNT become Zero. But the same amount (4000) is still showing at Outstanding Tab. And the status of invoice is now showing OVERDUE, rather than Paid.

Any solution to change status of sales invoice from overdue to paid now…?

Which version do you use? @Humming_Bird