Appearance
Hostel Fee Template
hostel.fee_template · every change is kept in the audit log
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
hostel | hostel | link → hostel.hostel | required |
academic_year | academic year | link → core.academic_year | required |
semester | semester | number | required; min 1 |
semester_name | semester name | text | |
fee_head | fee head | link → hostel.fee_head | required |
amount | amount | money | required |
fee_type | fee type | select | required; one of: Recurring, Deposit, Mess; default "Recurring" |
is_active | is active | check | default true |
Unique together: hostel + academic_year + semester + fee_head
Permissions
| Role | Can |
|---|---|
hostel:admin | read, create, update, delete, import, export |
hostel:warden | read — only rows in the user's scope (via hostel) |
hostel:accounts | read |
hostel:student | read |
API
http
GET /api/hostel/fee_template?<field>=<value>&limit=100&offset=0
POST /api/hostel/fee_template
GET /api/hostel/fee_template/:id
PATCH /api/hostel/fee_template/:id
DELETE /api/hostel/fee_template/:idBulk import: GET /api/_import/hostel/fee_template/template (CSV template), then POST /api/_import/hostel/fee_template. See REST API.