Once the purchase return is created for a purchase document
Please record the payment for the purchase >> settle from advance payments >> update payment