Skip to content

Commit

Permalink
fix: include current month full tax in total income tax and current m…
Browse files Browse the repository at this point in the history
…onth tax

(cherry picked from commit 13b7cfe)
  • Loading branch information
Sudharsanan11 authored and mergify[bot] committed Feb 4, 2025
1 parent b92735b commit 419f0c9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hrms/payroll/doctype/salary_slip/salary_slip.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,10 +932,14 @@ def compute_income_tax_breakup(self):

if hasattr(self, "total_structured_tax_amount") and hasattr(self, "current_structured_tax_amount"):
self.future_income_tax_deductions = (
self.total_structured_tax_amount - self.income_tax_deducted_till_date
self.total_structured_tax_amount
+ self.get("full_tax_on_additional_earnings", 0)
- self.income_tax_deducted_till_date
)

self.current_month_income_tax = self.current_structured_tax_amount
self.current_month_income_tax = self.current_structured_tax_amount + self.get(
"full_tax_on_additional_earnings", 0
)

# non included current_month_income_tax separately as its already considered
# while calculating income_tax_deducted_till_date
Expand Down

0 comments on commit 419f0c9

Please sign in to comment.