From bc7007d5889aba30015aadfb95e921a1cb933dfc Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 14 Apr 2022 14:02:01 +0530 Subject: [PATCH] fix: get enabled deduction components Co-authored-by: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com> --- .../report/income_tax_computation/income_tax_computation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 98c22b59ff..10670f81dc 100644 --- a/erpnext/payroll/report/income_tax_computation/income_tax_computation.py +++ b/erpnext/payroll/report/income_tax_computation/income_tax_computation.py @@ -257,7 +257,7 @@ class IncomeTaxComputationReport(object): tax_exempted_deduction_components = [ d.name for d in frappe.get_all( - "Salary Component", {"type": "Deduction", "exempted_from_income_tax": 1} + "Salary Component", {"type": "Deduction", "exempted_from_income_tax": 1, "disabled": 0} ) ]