Leave Management
Leave types, request statuses, and day-half support for managing employee time off.
The leave management system handles all aspects of employee time off, from requesting leave to tracking balances.
Leave Types
| Type | Description |
|---|---|
VACATION | Paid annual leave |
SICK | Sick leave due to illness or medical appointments |
PERSONAL | Personal days for private matters |
PARENTAL | Parental leave for birth, adoption, or childcare |
UNPAID | Leave without pay |
OTHER | Any leave that does not fit the above categories |
Request Statuses
stateDiagram-v2
[*] --> PENDING
PENDING --> APPROVED : Manager approves
PENDING --> REJECTED : Manager rejects
PENDING --> CANCELLED : Employee cancels
APPROVED --> CANCELLED : Employee cancels
APPROVED --> [*]
REJECTED --> [*]
CANCELLED --> [*]| Status | Description |
|---|---|
PENDING | Request has been submitted and awaits manager review |
APPROVED | Manager has approved the leave request |
REJECTED | Manager has denied the leave request |
CANCELLED | Employee has withdrawn the request |
Day Halves
Leave requests support partial-day entries using the day half system:
| Day Half | Description |
|---|---|
FULL | The entire day is taken as leave |
MORNING | Only the morning half is leave; the employee works in the afternoon |
AFTERNOON | Only the afternoon half is leave; the employee works in the morning |
This allows employees to take a half-day off without using a full day from their balance.
Vacation Balance
Each employee has a vacation balance that tracks:
- Annual entitlement -- Total leave days allocated per year
- Used -- Days consumed by approved requests
- Remaining -- Days still available
The balance updates automatically when leave requests are approved or cancelled. Only VACATION type leave deducts from the vacation balance; other leave types (sick, parental, etc.) are tracked separately.