Skip to content

Commit 2992aac

Browse files
Update salary_slip.py
Consider Present on Holiday
1 parent b2e21e7 commit 2992aac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hrms/payroll/doctype/salary_slip/salary_slip.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,8 @@ def get_working_days_details(self, lwp=None, for_preview=0):
499499
self.absent_days += unmarked_days
500500
self.payment_days -= unmarked_days
501501
half_absent_days = self.get_half_absent_days(
502-
consider_absent_on_holidays
503-
holidays,
502+
consider_absent_on_holidays,
503+
holidays
504504
)
505505
self.absent_days += half_absent_days * daily_wages_fraction_for_half_day
506506
self.payment_days -= half_absent_days * daily_wages_fraction_for_half_day
@@ -522,7 +522,7 @@ def get_unmarked_days(
522522

523523
return unmarked_days
524524

525-
def get_half_absent_days(self, include_holidays_in_total_working_days, consider_absent_on_holidays, holidays):
525+
def get_half_absent_days(self, consider_absent_on_holidays, holidays):
526526
"""Calculates the number of half absent days for an employee within a date range"""
527527
Attendance = frappe.qb.DocType("Attendance")
528528
query = (

0 commit comments

Comments
 (0)