Appearance
Leave Balance
hrms.leave_allocation · every change is kept in the audit log
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
employee | employee | link → hrms.employee | required |
leave_type | leave type | link → hrms.leave_type | required |
year | year | number | required |
allocated | allocated | decimal | default 0 |
taken | taken | decimal | default 0 |
balance | balance | decimal | default 0 |
Unique together: employee + leave_type + year
Permissions
| Role | Can |
|---|---|
hrms:admin | read, create, update, delete |
hrms:payroll | read |
hrms:manager | read |
hrms:employee | read — only own rows (via employee) |
API
http
GET /api/hrms/leave_allocation?<field>=<value>&limit=100&offset=0
POST /api/hrms/leave_allocation
GET /api/hrms/leave_allocation/:id
PATCH /api/hrms/leave_allocation/:id
DELETE /api/hrms/leave_allocation/:id