mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 05:28:27 +00:00
Merge pull request #23897 from Anurag810/salary_slip_fixes
fix: added wrong absent days calculation in salary slip
This commit is contained in:
@@ -240,7 +240,6 @@ class SalarySlip(TransactionBase):
|
|||||||
self.absent_days += unmarked_days #will be treated as absent
|
self.absent_days += unmarked_days #will be treated as absent
|
||||||
self.payment_days -= unmarked_days
|
self.payment_days -= unmarked_days
|
||||||
if include_holidays_in_total_working_days:
|
if include_holidays_in_total_working_days:
|
||||||
self.absent_days -= len(holidays)
|
|
||||||
for holiday in holidays:
|
for holiday in holidays:
|
||||||
if not frappe.db.exists("Attendance", {"employee": self.employee, "attendance_date": holiday, "docstatus": 1 }):
|
if not frappe.db.exists("Attendance", {"employee": self.employee, "attendance_date": holiday, "docstatus": 1 }):
|
||||||
self.payment_days += 1
|
self.payment_days += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user