mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 10:45:29 +00:00
fix: make to tax category on tax rule to filter with percent
(cherry picked from commit 3aaa13cb29)
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user