How to record partial payment and show the remaining amount as pending?

Please go to the invoice >> select the invoice >> click on record payment >> enter the amount >> select the payment type >> click on update payment.