Merge pull request #23897 from Anurag810/salary_slip_fixes

fix: added wrong absent days calculation in salary slip
This commit is contained in:
Anurag Mishra 2020-11-16 15:56:43 +05:30 committed by GitHub
commit 70816fdae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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