Skip to content

Commit 6db9f41

Browse files
authored
Merge pull request #2755 from frappe/mergify/bp/version-14-hotfix/pr-2731
fix: include current month full tax in total income tax and current m… (backport #2731)
2 parents eeef692 + 65dae57 commit 6db9f41

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

hrms/payroll/doctype/salary_slip/salary_slip.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -865,10 +865,14 @@ def compute_income_tax_breakup(self):
865865

866866
if hasattr(self, "total_structured_tax_amount") and hasattr(self, "current_structured_tax_amount"):
867867
self.future_income_tax_deductions = (
868-
self.total_structured_tax_amount - self.income_tax_deducted_till_date
868+
self.total_structured_tax_amount
869+
+ self.get("full_tax_on_additional_earnings", 0)
870+
- self.income_tax_deducted_till_date
869871
)
870872

871-
self.current_month_income_tax = self.current_structured_tax_amount
873+
self.current_month_income_tax = self.current_structured_tax_amount + self.get(
874+
"full_tax_on_additional_earnings", 0
875+
)
872876

873877
# non included current_month_income_tax separately as its already considered
874878
# while calculating income_tax_deducted_till_date

0 commit comments

Comments
 (0)