Human Resources
Employees, attendance, leave, payroll and deductions.
Overview
HR manages the employee lifecycle and the full payroll cycle. Attendance is resolved from work periods and snapshots, leave runs off a unified ledger with public holidays, and payroll runs pull it all together with hour/day-based deductions — every result data-scoped to what each manager may see.
Key features
Attendance
Expected-from-snapshot attendance so work-period edits stay safe.
Leave
Unified leave ledger with public holidays and balances.
Payroll
Full payroll runs with configurable deduction bases.
How to use it
1. Onboard employees
Maintain employee records within your data scope — each manager sees only their own people.
2. Track attendance
Attendance resolves from work periods and an expected-from-snapshot, so editing a work period later never rewrites past days.
3. Manage leave
A unified leave ledger tracks balances and honors public holidays across leave types.
4. Run payroll
Execute full payroll runs with hour- or day-based deduction calculation bases.
Roles & permissions
HR permissions combined with DataScopeService::allowedUserIds() (the WithinDataScope standard) mean each manager only ever sees their own people. Payroll child records use soft deletes, so history is preserved.
Questions about this module
Does editing a work period change past attendance?
No — expected attendance is snapshotted, so historical days are safe.
How are deductions calculated?
By an hour- or day-based calculation base configured per deduction rule.
Does leave account for public holidays?
Yes — public holidays are built into the unified leave ledger.