How to change the document status from pending to paid?

Please follow the steps mentioned below to change the document status from pending to paid:

Step 1: Go to Sales >> Invoices >> Click on pending status for the desired invoice

Step 2: Enter the necessary payment details >> Click on Update payment

Now, you will receive a notification confirming that the payment has been successfully recorded, and the document status will change from Pending to Paid, as shown below.