mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-15 18:01:41 +00:00
fix(purchase invoice): filter only enabled account
(cherry picked from commit c3111db6e2)
This commit is contained in:
@@ -695,6 +695,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`
|
||||
|
||||
Reference in New Issue
Block a user