How to record advance while creating invoice?

To record the advance payment while creating an invoice, please refer to the steps mentioned below:

Step 1: Click on sales >> Click on create invoice

Step 2: Enter the amount >> Select the payment mode >> Add note as advance >> Save