Appearance
Sub-department
budget.sub_department · numbered {department}-{code}
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
department | department | link → core.college | required |
name | name | text | required |
code | code | number | required; unique; min 1 |
Unique together: department + name
Permissions
| Role | Can |
|---|---|
budget:admin | read, create, update, delete |
budget:finance | read, create, update, delete |
budget:hod | read |
budget:clerk | read |
budget:auditor | read |
API
http
GET /api/budget/sub_department?<field>=<value>&limit=100&offset=0
POST /api/budget/sub_department
GET /api/budget/sub_department/:id
PATCH /api/budget/sub_department/:id
DELETE /api/budget/sub_department/:id