Allow to select Asset Received But Not Billed in expense account head

This commit is contained in:
Rohit Waghchaure
2018-05-17 00:22:29 +05:30
parent e8ef69ec33
commit 585945e65d
2 changed files with 10 additions and 12 deletions

View File

@@ -366,7 +366,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"))
or tabAccount.account_type in ("Expense Account", "Fixed Asset", "Temporary", "Asset Received But Not Billed"))
and tabAccount.is_group=0
and tabAccount.docstatus!=2
and tabAccount.{key} LIKE %(txt)s