perf: pull latest details only for referenced vouchers

(cherry picked from commit deb0d71294)

# Conflicts:
#	erpnext/accounts/doctype/payment_entry/payment_entry.py
This commit is contained in:
ruthra kumar
2023-08-15 05:17:01 +05:30
committed by Mergify
parent 67c8350f70
commit 47345e81a1
2 changed files with 85 additions and 13 deletions

View File

@@ -884,6 +884,7 @@ def get_outstanding_invoices(
min_outstanding=None,
max_outstanding=None,
accounting_dimensions=None,
vouchers=None,
):
ple = qb.DocType("Payment Ledger Entry")
@@ -909,6 +910,7 @@ def get_outstanding_invoices(
ple_query = QueryPaymentLedger()
invoice_list = ple_query.get_voucher_outstandings(
vouchers=vouchers,
common_filter=common_filter,
posting_date=posting_date,
min_outstanding=min_outstanding,