How to settle purchase invoice with purchase return on web?

Once the purchase return is created for a purchase document

Please record the payment for the purchase >> settle from advance payments >> update payment