fix: added wrong absent days calculation in salary slip

This commit is contained in:
Anurag Mishra 2020-11-12 16:57:42 +05:30
parent 0ea0a7495c
commit 2f5d896f8c

View File

@ -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