Skip to content

Commit

Permalink
fix: fetch capital work in progress as expense account (#18780)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mangesh-Khairnar authored and nabinhait committed Aug 21, 2019
1 parent bcb0f60 commit 5619db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/queries.py
Expand Up @@ -371,7 +371,7 @@ def get_expense_account(doctype, txt, searchfield, start, page_len, filters):

return frappe.db.sql("""select tabAccount.name from `tabAccount`
where (tabAccount.report_type = "Profit and Loss"
or tabAccount.account_type in ("Expense Account", "Fixed Asset", "Temporary", "Asset Received But Not Billed"))
or tabAccount.account_type in ("Expense Account", "Fixed Asset", "Temporary", "Asset Received But Not Billed", "Capital Work in Progress"))
and tabAccount.is_group=0
and tabAccount.docstatus!=2
and tabAccount.{key} LIKE %(txt)s
Expand Down

0 comments on commit 5619db2

Please sign in to comment.