fix: make to tax category on tax rule to filter with percent

(cherry picked from commit 3aaa13cb29)
This commit is contained in:
venkat102
2024-09-23 12:37:40 +05:30
committed by Mergify
parent 7e6d6f08a2
commit 63d4fddb49

View File

@@ -185,7 +185,7 @@ def get_tax_template(posting_date, args):
conditions.append("(from_date is null) and (to_date is null)") conditions.append("(from_date is null) and (to_date is null)")
conditions.append( 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(): if "tax_category" in args.keys():
del args["tax_category"] del args["tax_category"]