Merge pull request #42936 from ruthra-kumar/fix_incorrect_attribute_on_payment_entry

fix: remove unnecessary condition on 'voucher_no'
This commit is contained in:
ruthra kumar
2024-08-27 16:35:02 +05:30
committed by GitHub

View File

@@ -1838,7 +1838,7 @@ def get_outstanding_reference_documents(args, validate=False):
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"),