Skip to content

Leave Application ​

hrms.leave_application · every change is kept in the audit log · numbered LV-{YYYY}-{#####}

Fields ​

Every record also has id, created_at and updated_at.

FieldLabelTypeRules
employeeemployeelink → hrms.employeerequired
leave_yearleave yearnumberrequired
total_daystotal daysdecimalmin 0
daysdaystable of leave_application_dayrequired
statusstatusselectone of: Pending, Approved, Rejected, Cancelled; default "Pending"
approved_byapproved bylink → core.user
comp_offcomp offcheckdefault false

Permissions ​

RoleCan
hrms:adminread, create, update, delete
hrms:managerread, update
hrms:payrollread
hrms:employeeread, create, update — only own rows (via employee)

API ​

http
GET    /api/hrms/leave_application?<field>=<value>&limit=100&offset=0
POST   /api/hrms/leave_application
GET    /api/hrms/leave_application/:id
PATCH  /api/hrms/leave_application/:id
DELETE /api/hrms/leave_application/:id

Edulab Bench developer documentation