fix: get enabled earning components
Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
diff --git a/erpnext/payroll/report/income_tax_computation/income_tax_computation.py b/erpnext/payroll/report/income_tax_computation/income_tax_computation.py
index cebf6de..51417e4 100644
--- a/erpnext/payroll/report/income_tax_computation/income_tax_computation.py
+++ b/erpnext/payroll/report/income_tax_computation/income_tax_computation.py
@@ -250,7 +250,7 @@
def get_tax_exempted_components(self):
# nontaxable earning components
nontaxable_earning_components = [
- d.name for d in frappe.get_all("Salary Component", {"type": "Earning", "is_tax_applicable": 0})
+ d.name for d in frappe.get_all("Salary Component", {"type": "Earning", "is_tax_applicable": 0, "disabled": 0})
]
# tax exempted deduction components