While using Fetch Outstanding Invoices feature on Payment Entry, Invoice From Date, To Date, Currency etc filters does not work on credit / debit notes (invoices with negative outstanding invoices). However, these filters work on normal invoices.
get_outstanding_reference_documents(args)
method of apps/erpnext/erpnext/accounts/doctype/payment_entry/payment_entry.py
handles filters on positive outstanding sales / purchase invoices, Fees. But these filters are not handled in get_negative_outstanding_invoices
method.
Not handling filters on negative outstanding invoices is intentional behaviour?