Skip to content

Commit

Permalink
Merge pull request #35114 from saurabh6790/consider-standard-exemption
Browse files Browse the repository at this point in the history
fix: allow user to set standard deductions in income tax slab without allowing other exemptions
  • Loading branch information
saurabh6790 committed May 2, 2023
2 parents 740313f + c5261cd commit 2f74026
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions erpnext/payroll/doctype/income_tax_slab/income_tax_slab.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"label": "Disabled"
},
{
"depends_on": "allow_tax_exemption",
"fieldname": "standard_tax_exemption_amount",
"fieldtype": "Currency",
"label": "Standard Tax Exemption Amount",
Expand Down Expand Up @@ -104,7 +103,7 @@
],
"is_submittable": 1,
"links": [],
"modified": "2021-03-31 22:42:08.139520",
"modified": "2023-05-01 13:42:08.139520",
"modified_by": "Administrator",
"module": "Payroll",
"name": "Income Tax Slab",
Expand Down
1 change: 1 addition & 0 deletions erpnext/payroll/doctype/salary_slip/salary_slip.py
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,7 @@ def get_total_exemption_amount(self, payroll_period, tax_slab):
if declaration:
total_exemption_amount = declaration

if tax_slab.standard_tax_exemption_amount:
total_exemption_amount += flt(tax_slab.standard_tax_exemption_amount)

return total_exemption_amount
Expand Down

0 comments on commit 2f74026

Please sign in to comment.