Merge pull request #30361 from deepeshgarg007/tax_account_display
fix: GST account not showing up in tax templates
diff --git a/erpnext/controllers/queries.py b/erpnext/controllers/queries.py
index dd9b45c..d870823 100644
--- a/erpnext/controllers/queries.py
+++ b/erpnext/controllers/queries.py
@@ -168,7 +168,7 @@
{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