Merge pull request #17459 from rohitwaghchaure/handle_large_outstanding_invoices_code_refactored

feat(payment-entry): handle fetch operation of a large number of outstanding invoices