From 57924599da01d2aabef9948a296c5ddbdcc4ed3d Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Tue, 22 Mar 2022 18:26:58 +0530 Subject: [PATCH] fix: GST account not showing up in tax templates --- erpnext/controllers/queries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/queries.py b/erpnext/controllers/queries.py index dd9b45cc3f..d870823ad1 100644 --- a/erpnext/controllers/queries.py +++ b/erpnext/controllers/queries.py @@ -168,7 +168,7 @@ def tax_account_query(doctype, txt, searchfield, start, page_len, filters): {account_type_condition} AND is_group = 0 AND company = %(company)s - AND account_currency = %(currency)s + AND (account_currency = %(currency)s or ifnull(account_currency, '') = '') AND `{searchfield}` LIKE %(txt)s {mcond} ORDER BY idx DESC, name