fix: added wrong absent days calculation in salary slip
This commit is contained in:
parent
0ea0a7495c
commit
2f5d896f8c
@ -240,7 +240,6 @@ class SalarySlip(TransactionBase):
|
||||
self.absent_days += unmarked_days #will be treated as absent
|
||||
self.payment_days -= unmarked_days
|
||||
if include_holidays_in_total_working_days:
|
||||
self.absent_days -= len(holidays)
|
||||
for holiday in holidays:
|
||||
if not frappe.db.exists("Attendance", {"employee": self.employee, "attendance_date": holiday, "docstatus": 1 }):
|
||||
self.payment_days += 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user