fix(auto attendance): bug in marking absent (#20759)
This bug was introduces in the commit bd6e8b9cec5414f81c67468030ec174030845720 i.e. The mark_absent function was renamed to mark_attendance, but there is a miss match in the order of the parameters.
This commit is contained in:
parent
8cf841ce60
commit
0db423ed5f
@ -75,7 +75,7 @@ class ShiftType(Document):
|
|||||||
for date in dates:
|
for date in dates:
|
||||||
shift_details = get_employee_shift(employee, date, True)
|
shift_details = get_employee_shift(employee, date, True)
|
||||||
if shift_details and shift_details.shift_type.name == self.name:
|
if shift_details and shift_details.shift_type.name == self.name:
|
||||||
mark_attendance(employee, date, self.name, 'Absent')
|
mark_attendance(employee, date, 'Absent', self.name)
|
||||||
|
|
||||||
def get_assigned_employee(self, from_date=None, consider_default_shift=False):
|
def get_assigned_employee(self, from_date=None, consider_default_shift=False):
|
||||||
filters = {'date':('>=', from_date), 'shift_type': self.name, 'docstatus': '1'}
|
filters = {'date':('>=', from_date), 'shift_type': self.name, 'docstatus': '1'}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user