Skip to content

Commit

Permalink
Merge pull request #2725 from aerele/employee-other-income
Browse files Browse the repository at this point in the history
fix: remove employee other income from CTC
  • Loading branch information
AyshaHakeem authored Feb 4, 2025
2 parents ac632e6 + 01cdcc0 commit 0ab7928
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion hrms/payroll/doctype/salary_slip/salary_slip.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,6 @@ def compute_ctc(self):
+ self.current_structured_taxable_earnings_before_exemption
+ self.future_structured_taxable_earnings_before_exemption
+ self.current_additional_earnings
+ self.other_incomes
+ self.unclaimed_taxable_benefits
+ self.non_taxable_earnings
)
Expand Down
6 changes: 3 additions & 3 deletions hrms/payroll/doctype/salary_slip/test_salary_slip.py
Original file line number Diff line number Diff line change
Expand Up @@ -1476,14 +1476,14 @@ def test_income_tax_breakup_fields(self):

monthly_tax_amount = 11403.6

self.assertEqual(salary_slip.ctc, 1226000.0)
self.assertEqual(salary_slip.ctc, 1216000.0)
self.assertEqual(salary_slip.income_from_other_sources, 10000.0)
self.assertEqual(salary_slip.non_taxable_earnings, 10000.0)
self.assertEqual(salary_slip.total_earnings, 1236000.0)
self.assertEqual(salary_slip.total_earnings, 1226000.0)
self.assertEqual(salary_slip.standard_tax_exemption_amount, 50000.0)
self.assertEqual(salary_slip.tax_exemption_declaration, 100000.0)
self.assertEqual(salary_slip.deductions_before_tax_calculation, 2400.0)
self.assertEqual(salary_slip.annual_taxable_amount, 1073600.0)
self.assertEqual(salary_slip.annual_taxable_amount, 1063600.0)
self.assertEqual(flt(salary_slip.income_tax_deducted_till_date, 2), monthly_tax_amount)
self.assertEqual(flt(salary_slip.current_month_income_tax, 2), monthly_tax_amount)
self.assertEqual(flt(salary_slip.future_income_tax_deductions, 2), 125439.65)
Expand Down

0 comments on commit 0ab7928

Please sign in to comment.