Purchase invoice Paid status and negative Outstanding

I have posted a backdated Purchase Invoice with Deferred Expense enabled. When I created its payment, the Payment Entry showed a negative balance for the invoice. Upon checking the same Purchase Invoice, I noticed that the outstanding amount was negative. After further investigation, I found that the deferred journal entry amount was included in the outstanding amount.
Note That : If we cancel a Purchase Invoice, amend it, and submit it again, the ‘Paid’ status is removed and it becomes a normal unpaid invoice and oustanding also zero
Status is paid as well no payment was made
If anybody need Further calrification
Thanks in advance

If Any one Face this Issue please suggest solution

Any One have Eexperienced this type of issue?

We encountered this as well ! Did you find a solution ?