Advance payment not applied in "Purchase invoice" while creating from "Purchase receipt"

Hello all,

Please review the following case.

“Purchase order” is created for $1000.
Now create “Purchase receipt” from “Purchase order”.
Now create “Purchase Invoice” from “Purchase receipt” and click on “Get advance Paid”.
It displays a table of “advance paid details” but “Avance paid” amount is not deducted from “Outstanding Amount”.

Please, anybody, help me how to deal with this?

In the workflow above, you didn’t make a mention about Advance payment Entry.

Did you create Advance Payment Entry against Purchase Order? Or directly in the Payment Entry?