Skip to content

Commit d130c70

Browse files
fix(salary_slip): update round() for remaining sub period
1 parent 2c4f20a commit d130c70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hrms/payroll/doctype/salary_slip/salary_slip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,15 +1018,15 @@ def compute_current_and_future_taxable_earnings(self):
10181018
# get taxable_earnings for current period (all days)
10191019
self.current_taxable_earnings = self.get_taxable_earnings(self.tax_slab.allow_tax_exemption)
10201020
self.future_structured_taxable_earnings = self.current_taxable_earnings.taxable_earnings * (
1021-
ceil(self.remaining_sub_periods) - 1
1021+
round(self.remaining_sub_periods) - 1
10221022
)
10231023

10241024
current_taxable_earnings_before_exemption = (
10251025
self.current_taxable_earnings.taxable_earnings
10261026
+ self.current_taxable_earnings.amount_exempted_from_income_tax
10271027
)
10281028
self.future_structured_taxable_earnings_before_exemption = (
1029-
current_taxable_earnings_before_exemption * (ceil(self.remaining_sub_periods) - 1)
1029+
current_taxable_earnings_before_exemption * (round(self.remaining_sub_periods) - 1)
10301030
)
10311031

10321032
# get taxable_earnings, addition_earnings for current actual payment days

0 commit comments

Comments
 (0)