Skip to content

Commit

Permalink
fix: use of incorrect attribute
Browse files Browse the repository at this point in the history
(cherry picked from commit fb32d2c)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Aug 27, 2024
1 parent c0b5f7c commit ff14d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/payment_entry/payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit ff14d72

Please sign in to comment.