Skip to content

Commit

Permalink
Merge pull request #43332 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-43328

fix: allow tax rule filter on tax category name with % (backport #43328)
  • Loading branch information
ruthra-kumar committed Sep 23, 2024
2 parents 7e6d6f0 + 63d4fdd commit 250a1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/tax_rule/tax_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def get_tax_template(posting_date, args):
conditions.append("(from_date is null) and (to_date is null)")

conditions.append(
"ifnull(tax_category, '') = {}".format(frappe.db.escape(cstr(args.get("tax_category"))))
"ifnull(tax_category, '') = {}".format(frappe.db.escape(cstr(args.get("tax_category")), False))
)
if "tax_category" in args.keys():
del args["tax_category"]
Expand Down

0 comments on commit 250a1c9

Please sign in to comment.