fix: use of incorrect attribute

(cherry picked from commit fb32d2cafb)
This commit is contained in:
ruthra kumar
2024-08-27 14:40:12 +05:30
committed by Mergify
parent c0b5f7c8eb
commit ff14d72a46

View File

@@ -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") d["bill_no"] = frappe.db.get_value(d.voucher_type, d.voucher_no, "bill_no")
# Get negative outstanding sales /purchase invoices # 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( negative_outstanding_invoices = get_negative_outstanding_invoices(
args.get("party_type"), args.get("party_type"),
args.get("party"), args.get("party"),