Skip to content

Leave Balance ​

hrms.leave_allocation · every change is kept in the audit log

Fields ​

Every record also has id, created_at and updated_at.

FieldLabelTypeRules
employeeemployeelink → hrms.employeerequired
leave_typeleave typelink → hrms.leave_typerequired
yearyearnumberrequired
allocatedallocateddecimaldefault 0
takentakendecimaldefault 0
balancebalancedecimaldefault 0

Unique together: employee + leave_type + year

Permissions ​

RoleCan
hrms:adminread, create, update, delete
hrms:payrollread
hrms:managerread
hrms:employeeread — 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

Edulab Bench developer documentation