From ff14d72a4620f55c4282e0cc29b6ffc08419334d Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Tue, 27 Aug 2024 14:40:12 +0530 Subject: [PATCH] fix: use of incorrect attribute (cherry picked from commit fb32d2cafb1757216ec3f7db5f3e745ea5b15906) --- erpnext/accounts/doctype/payment_entry/payment_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py index 9384ee180d2..6d9565fb21c 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.py +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py @@ -1563,7 +1563,7 @@ def get_outstanding_reference_documents(args): d["bill_no"] = frappe.db.get_value(d.voucher_type, d.voucher_no, "bill_no") # Get negative outstanding sales /purchase invoices - if args.get("party_type") != "Employee" and not args.get("voucher_no"): + if args.get("party_type") != "Employee": negative_outstanding_invoices = get_negative_outstanding_invoices( args.get("party_type"), args.get("party"),