fix: Ignore disabled tax categories

This commit is contained in:
Deepesh Garg 2022-04-01 14:46:26 +05:30
parent b981fae5a4
commit 9a6a181f14

View File

@ -339,7 +339,7 @@ def get_tax_template(master_doctype, company, is_inter_state, state_code):
tax_categories = frappe.get_all(
"Tax Category",
fields=["name", "is_inter_state", "gst_state"],
filters={"is_inter_state": is_inter_state, "is_reverse_charge": 0},
filters={"is_inter_state": is_inter_state, "is_reverse_charge": 0, "disabled": 0},
)
default_tax = ""