fix(purchase invoice): filter only enabled account

This commit is contained in:
mithili
2025-07-28 17:10:46 +05:30
parent 09f65713ca
commit c3111db6e2
2 changed files with 5 additions and 1 deletions

View File

@@ -700,6 +700,7 @@ def get_expense_account(doctype, txt, searchfield, start, page_len, filters):
condition = ""
if filters.get("company"):
condition += "and tabAccount.company = %(company)s"
condition += f"and tabAccount.disabled = {filters.get('disabled', 0)}"
return frappe.db.sql(
f"""select tabAccount.name from `tabAccount`