Skip to content

Commit

Permalink
fix: wrong compute of CTC on salary slip, if employee relieving date …
Browse files Browse the repository at this point in the history
…before end of payroll period. (backport #1779) (#2054)

(cherry picked from commit 4c961fb)

Co-authored-by: Kitti U. @ Ecosoft <[email protected]>
  • Loading branch information
mergify[bot] and kittiu authored Aug 6, 2024
1 parent 46ed7be commit ddf4cdb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hrms/payroll/doctype/payroll_period/payroll_period.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ def get_period_factor(

if relieving_date and getdate(relieving_date) < getdate(period_end):
period_end = relieving_date
if month_diff(period_end, start_date) > 1:
start_date = add_months(start_date, -(month_diff(period_end, start_date) + 1))

total_sub_periods, remaining_sub_periods = 0.0, 0.0

Expand Down

0 comments on commit ddf4cdb

Please sign in to comment.