fix: fix employee status when importing from CORE API
This commit is contained in:
parent
1b04b4097c
commit
e56cdf1802
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue