How to download the customer ledger only with pending invoice?

Please go to the customer >> select the customer >> click on view ledger >> select show Only Pending invoices >> click on download.