We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2434ecf commit 26787a2Copy full SHA for 26787a2
hrms/payroll/doctype/salary_slip/salary_slip.py
@@ -653,7 +653,7 @@ def calculate_lwp_or_ppl_based_on_leave_application(
653
654
for d in working_days_list:
655
if self.relieving_date and d > self.relieving_date:
656
- continue
+ break
657
658
leave = leaves.get(d)
659
@@ -674,7 +674,7 @@ def calculate_lwp_or_ppl_based_on_leave_application(
674
675
if cint(leave.is_ppl):
676
equivalent_lwp_count *= (
677
- fraction_of_daily_salary_per_leave if fraction_of_daily_salary_per_leave else 1
+ (1 - fraction_of_daily_salary_per_leave) if fraction_of_daily_salary_per_leave else 1
678
)
679
680
lwp += equivalent_lwp_count
0 commit comments