Skip to content

Commit

Permalink
fix: add 'disabled' and 'type' filters to tax component query
Browse files Browse the repository at this point in the history
  • Loading branch information
AyshaHakeem committed Jan 13, 2025
1 parent 790ec7e commit 86662a8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,9 @@ def get_data_for_eval(self, emp: str, emp_details: dict) -> tuple:

def get_total_deducted_tax(self):
tax_components = frappe.get_all(
"Salary Component", filters={"is_income_tax_component": 1}, pluck="name"
"Salary Component",
filters={"is_income_tax_component": 1, "type": "Deduction", "disabled": 0},
pluck="name",
)
if not tax_components:
return []
Expand Down

0 comments on commit 86662a8

Please sign in to comment.