HR Module Administration¶
Configuration and administration of the HR module.
Basic Setup¶
Module Activation¶
The HR module is part of the extension package. After installation:
- Activate the module in administration
- Set permissions for roles
- Configure default values
HR Settings¶
In Administration → Settings → HR configure:
| Setting | Description | Default |
|---|---|---|
| Annual vacation entitlement | Standard hours/year | 160 |
| Work hours per day | Daily hours | 8 |
| Automatic vacation transfer | Year-end transfer | Yes |
Number Sequences¶
Numbering Formats¶
| Entity | Format | Example |
|---|---|---|
| VacationRequest | ABS-{YY}-{number} | ABS-25-00001 |
| Vacation | VAC-{YY}-{number} | VAC-25-00001 |
| WorkRecord | WR-{YY}-{number} | WR-25-00001 |
Sequence Configuration¶
Configuration: Administration → Entity Manager → [Entity] → Fields → automaticReferenceIdentifier
Entity Statuses¶
Absence Request Statuses (VacationRequest)¶
| Status | Value | Color | Description |
|---|---|---|---|
| Draft | Draft |
- | Work in progress |
| Pending | Pending |
warning | Awaiting approval |
| Approved | Approved |
success | Approved |
| Rejected | Rejected |
danger | Rejected |
| Returned | Returned |
info | For revision |
Time Log Statuses (LogTime)¶
| Status | Value | Color |
|---|---|---|
| Planned | Planned |
- |
| In Progress | In Progress |
warning |
| Done | Done |
success |
Absence Types¶
Type Configuration¶
Absence types are defined in WorkTimeEnum:
| Type | Value | Deducts Vacation |
|---|---|---|
| Vacation | vacation |
Yes |
| Sick Day | sickDay |
No (paid leave) |
| Sick Leave | sickLeave |
No |
| Care Leave | careLeave |
No |
| Doctor | doctor |
Depends on settings |
| Business Trip | businessTrip |
No |
| Statutory Absence | statutoryAbsence |
No |
| Unpaid Absence | unpaidAbsence |
No |
| Home Office | homeOffice |
No |
Custom Types¶
To add a custom type:
- Go to Administration → Entity Manager → WorkTimeEnum
- Edit the type field
- Add a new value
- Define consumption behavior
Working Calendar¶
Calendar Configuration¶
The working calendar defines:
- Working days - Monday to Friday (default)
- Working hours - 8:00 - 17:00
- Holidays - Public holidays
- Non-working days - Company holidays
Calendar Assignment¶
- Create a calendar in Working Calendars
- Assign to users/employees
- Calendar is used for:
- Absence hours calculation
- Attendance generation
- Planning
WorkingTimeCalendarRange¶
For specific periods (e.g., Christmas holiday):
| Field | Description |
|---|---|
| dateStart | Period start |
| dateEnd | Period end |
| isWorking | Working/Non-working |
Approval Workflow¶
Approval Configuration¶
Absence request approval process setup:
- Administration → HR Module Settings
- Define approvers by:
- Role
- Manager
- Team
Multi-Level Approval¶
For complex workflows:
| Level | Approver | Condition |
|---|---|---|
| 1 | Direct manager | Always |
| 2 | HR manager | Vacation > 5 days |
| 3 | Director | Vacation > 10 days |
Notifications¶
Alert configuration:
| Event | Recipient | Channel |
|---|---|---|
| New request | Approver | Email, System |
| Approved | Requester | Email, System |
| Rejected | Requester | Email, System |
| Returned | Requester | Email, System |
Automation¶
Automatic Vacation Transfer¶
At year end, the system automatically:
- Transfers unused hours to
lastYearVacationHoursLeft - Resets
vacationHoursLeftto annual entitlement - Creates operation log
Settings:
- Scheduled job runs January 1st
- Can be run manually in administration
Automatic Work Records¶
At month end:
- System finds active employees
- Sums time logs (LogTime)
- Creates WorkRecord with calculation
Configuration:
Medical Examination Reminders¶
Automatic alerts before expiration:
| Setting | Description | Default |
|---|---|---|
| Days ahead | Warning before deadline | 30 |
| Email recipient | HR or employee | HR |
Permissions¶
Role Configuration¶
In Administration → Roles set permissions:
| Entity | Actions | Description |
|---|---|---|
HumanResource |
create, read, edit, delete | Employees |
VacationRequest |
create, read, edit, delete | Absence requests |
Vacation |
create, read, edit, delete | Absences |
Attendance |
create, read, edit, delete | Attendance |
LogTime |
create, read, edit, delete | Time logs |
WorkTimeSummary |
create, read, edit, delete | Summaries |
WorkRecord |
create, read, edit, delete | Work records |
MedicalExamination |
create, read, edit, delete | Medical exams |
EducationAndTrainingRecord |
create, read, edit, delete | Education |
BorrowedEquipment |
create, read, edit, delete | Equipment |
Recommended Permissions by Role¶
| Role | Employees | Requests | Attendance | Time Logs |
|---|---|---|---|---|
| Employee | Read own | CRUD own | Read own | CRUD own |
| Team Leader | Read team | CRUD team + approval | Read team | Read team |
| HR Manager | CRUD | CRUD + approval | CRUD | CRUD |
| Administrator | CRUD | CRUD | CRUD | CRUD |
Own Records Restriction¶
For visibility of own records only:
- Assigned User - own records
- Team - team records
- All - no restriction
PDF Templates¶
Available Templates¶
| Template | Entity | Description |
|---|---|---|
| Employee Card | HumanResource | Personal data |
| Employment Contract | HumanResource | Contract data |
| Employment Confirmation | HumanResource | For authorities |
| Work Time Summary | WorkTimeSummary | Monthly overview |
Template Customization¶
Templates use HTML + Handlebars:
Available variables:
{{name}}- employee name{{vacationHoursLeft}}- remaining vacation{{workHoursPerDay}}- daily hours
Integration¶
Project Integration¶
Linking time logs with projects:
- In time log, select Parent → Project/Task
- Costs are automatically counted in project
- Can filter logs by project
Production Integration¶
Linking with production orders:
- Time logs can be assigned to operations
- Automatic production cost calculation
- Production efficiency tracking
Payroll Integration¶
Export for payroll systems:
- Generate work records
- Export to CSV/XML
- Import to payroll software
Troubleshooting¶
Cannot Create Absence Request¶
Cause: Missing workHoursPerDay field on employee
Solution: 1. Open employee detail 2. Set Work hours per day (e.g., 8) 3. Save
Approval Not Working¶
Cause: Missing approver configuration
Solution: 1. Check settings in Administration → HR Module Settings 2. Verify approver permissions 3. Check assigned user on request
Vacation Hours Not Deducting¶
Cause: Absence type doesn't consume vacation
Solution:
1. Check absence type (vacation vs. sickDay)
2. Only type vacation deducts from entitlement
3. Other types are records without deduction
Attendance Not Generating Correctly¶
Cause: Missing or incorrect working calendar
Solution: 1. Check assigned working calendar for user 2. Verify working day definitions in calendar 3. Check holidays and non-working days
Automatic Vacation Transfer Didn't Run¶
Cause: Scheduled job not running
Solution: 1. Check scheduled jobs in Administration 2. Verify cron job is running on server 3. Run transfer manually in administration