Skip to content

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.

FieldLabelTypeRules
hostelhostellink → hostel.hostelrequired
academic_yearacademic yearlink → core.academic_yearrequired
semestersemesternumberrequired; min 1
semester_namesemester nametext
fee_headfee headlink → hostel.fee_headrequired
amountamountmoneyrequired
fee_typefee typeselectrequired; one of: Recurring, Deposit, Mess; default "Recurring"
is_activeis activecheckdefault true

Unique together: hostel + academic_year + semester + fee_head

Permissions ​

RoleCan
hostel:adminread, create, update, delete, import, export
hostel:wardenread — only rows in the user's scope (via hostel)
hostel:accountsread
hostel:studentread

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/:id

Bulk import: GET /api/_import/hostel/fee_template/template (CSV template), then POST /api/_import/hostel/fee_template. See REST API.

Edulab Bench developer documentation