Payment Entry issue in ERPNext

Why do I get the return invoice also in the payment entry when creating a payment entry for a purchase invoice? Explain in details .

beacuse the return invoce is not paid. it will adjust the payments accordingly