To Settle Invoice with the Advance Payment received from Customer, please follow the below given steps.
Click on sales >> Enter the invoice number in search box >> Click on Rupees symbol >> Select the option to settle from Advance Payments >> Update payment.