mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
@@ -2250,9 +2250,9 @@ def get_outstanding_reference_documents(args, validate=False):
|
|||||||
accounts = get_party_account(
|
accounts = get_party_account(
|
||||||
args.get("party_type"), args.get("party"), args.get("company"), include_advance=True
|
args.get("party_type"), args.get("party"), args.get("company"), include_advance=True
|
||||||
)
|
)
|
||||||
advnace_account = accounts[1] if len(accounts) >= 1 else None
|
advance_account = accounts[1] if len(accounts) >= 1 else None
|
||||||
|
|
||||||
if party_account == advnace_account:
|
if party_account == advance_account:
|
||||||
party_account = accounts[0]
|
party_account = accounts[0]
|
||||||
|
|
||||||
if args.get("get_outstanding_invoices"):
|
if args.get("get_outstanding_invoices"):
|
||||||
|
|||||||
Reference in New Issue
Block a user