Skip to content

Commit

Permalink
Merge pull request #3702 from ONE-F-M/version-15
Browse files Browse the repository at this point in the history
version-15 to staging
  • Loading branch information
pjamsheer authored Oct 12, 2024
2 parents 9ebbaf3 + 83704b2 commit def05b8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion one_fm/one_fm/doctype/attendance_check/attendance_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,16 @@ def create_attendance_check(attendance_date=None):
if not attendance_date:
attendance_date = add_days(today(), -1)

employee_with_shift_permission = frappe.db.get_list('Shift Permission', filters={
'date': attendance_date
}, pluck='employee'
)

absentees = frappe.get_all("Attendance", filters={
'docstatus':1,
'status':'Absent',
'attendance_date':attendance_date},
'attendance_date':attendance_date,
'employee':["not in", employee_with_shift_permission]},
fields="*"
)

Expand Down

0 comments on commit def05b8

Please sign in to comment.