Merge pull request #30542 from deepeshgarg007/disabled_tax_category

fix: Ignore disabled tax categories
This commit is contained in:
Deepesh Garg 2022-04-09 19:52:31 +05:30 committed by GitHub
commit 2e00678c76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,7 +340,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 = ""