PO status with pending invoice

Hi everyone, I found issue as following scenario:

I have created PO > Post product receipt > then I generate invoice but not yet post. (Now pending invoice occurred)

Then, I cancel product receipt and change the product line quantity and unit price > and re-post product receipt again.

Then, I click generate invoice, there are 2 lines of invoice occurred (new invoice and last pending).

I select the new invoice then post.

Now, The problem is the PO status still be “Open order” even all quantities are invoiced. I also deleted the old pending invoice but could not solve anyway.

Anybody, have solution to make the PO status change to “Invoiced”

Many thanks in advance