Skip to content

Commit

Permalink
fix: Attendance
Browse files Browse the repository at this point in the history
  • Loading branch information
mymi14s committed Dec 26, 2023
1 parent 0f8f4dc commit 4894c17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions one_fm/overrides/attendance.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ def mark_bulk_attendance(employee, from_date, to_date):

# Mark attendance for Active Employees
def mark_for_active_employees(from_date=None, to_date=None):
if not from_date and to_date:
from_date, to_date = today(), today()
if not (from_date and to_date):
from_date, to_date = getdate(), getdate()
active_employees_on_shift = frappe.get_list("Employee", {
"status": ["=", "Active"],
"employment_type": ["!=", "Service Provider"],},
Expand All @@ -410,7 +410,7 @@ def remark_for_active_employees(from_date=None):
if not from_date:from_date=today()
# fix absent if shift exists
absent_attendance = frappe.get_list(
"Attendance", {"attendance_date":from_date, "status":"Absent"},
"Attendance", {"attendance_date":from_date, "status":"Absent",},
"*"
)
for i in absent_attendance:
Expand Down

0 comments on commit 4894c17

Please sign in to comment.