mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 20:05:09 +00:00
feat: request for work from home marked in attendance
This commit is contained in:
@@ -38,6 +38,8 @@ class AttendanceRequest(Document):
|
||||
attendance.employee_name = self.employee_name
|
||||
if self.half_day and date_diff(getdate(self.half_day_date), getdate(attendance_date)) == 0:
|
||||
attendance.status = "Half Day"
|
||||
elif self.reason == "Work From Home":
|
||||
attendance.status = "Work From Home"
|
||||
else:
|
||||
attendance.status = "Present"
|
||||
attendance.attendance_date = attendance_date
|
||||
|
||||
Reference in New Issue
Block a user