fix: fix employee status when importing from CORE API

This commit is contained in:
Lance Edgar 2024-07-04 21:33:38 -05:00
parent 1b04b4097c
commit e56cdf1802

View file

@ -366,7 +366,7 @@ class EmployeeImporter(FromCOREPOSAPI, corepos_importing.model.EmployeeImporter)
'first_name': employee['FirstName'], 'first_name': employee['FirstName'],
'last_name': employee['LastName'], 'last_name': employee['LastName'],
'full_name': normalize_full_name(employee['FirstName'], employee['LastName']), 'full_name': normalize_full_name(employee['FirstName'], employee['LastName']),
'status': self.enum.EMPLOYEE_STATUS_CURRENT if employee['EmpActive'] else self.enum.EMPLOYEE_STATUS_FORMER, 'status': self.enum.EMPLOYEE_STATUS_CURRENT if employee['EmpActive'] == '1' else self.enum.EMPLOYEE_STATUS_FORMER,
} }