Absence
Registration
Absence registrations are registered via the Absence api and the payroll run they are marked as archived and are not included into the following payroll runs.
In order for a hour registration to be created you need to provide the following information:
- User(employee)
- Absence type
- Number of days(hours)
- Period (from and to date)
Absence API supports:
Absence registrations are not included in the payroll if the status of the registration is not Approved. Only users with elevated roles are allowed to set status Approve to a registration. Employees are allowed to create registration only with pending status. After registration is processed in a payroll and payroll is completed the state of the registration is set to Archived.
Name | ID | Description |
---|---|---|
Pending | 0 | Registration is pending for approval, it will not be included in payroll |
Approved | 1 | Registration is approved, and it will be included in payroll |
Rejected | 2 | Registration is in pending status, it will not be included in payroll and status cannot be changed |
Archived | 3 | Registration is archived after processing in a payroll run and status cannot be changed |
ManuallyArchived | 4 | Registration is archived by the user without being processed in a payroll |
It is not possible to register two absences on same day.
Absence type
Absence type is essential for absence registrations in Zenegy. In order for registration to be created absence type has to be provided.
Absence type is defining how the amount of units(days) will be calculated in the payroll. Zenegy has default system absence types defined.
When creating the registration the ID of the absence type has to be provided.
Zenegy default absence types are:
ID | Name | Description |
---|---|---|
0 | Vacation | Vacation(ferie) this is registered as regular vacation days hat goes to vacation days saldo |
1 | Illness | Sick days(sygdom) this is registered as sick days |
2 | VacationFreeDay | Free vacation(feriefri) this is registered as vacation days that goes to free vacation days saldo |
3 | CareDay | Care day(Omsorgsdag) this is registered as care days and goes to care days saldo |
4 | ChildIllDay | Child ill(Barns sygedag) this is registered as child ill day |
5 | MaternityWithoutSalary | Maternity without salary, no calculations related to this type |
6 | MaternityWithSalary | Maternity with salary, no calculations related to this type |
7 | TrainingAndEducation | Training and education, no calculations related to this type |
8 | BusinessTravelEU | Travel EU, no calculations related to this type |
9 | BusinessTravelOutsideEU | Travel outside EU, no calculations related to this type |
10 | Other | Other , no calculations related to this type |
Employee
In order for registration to be created you need to provide absence type and uid of a employee to which the registration will be registered.
Employees can be pull as list from the the payroll API(s):
- Payroll Denmark list of employee can be pulled here