How sahana-bs-dev/student_refund_portal works
This is a campus event-permission and student-grant/refund portal, with student, HOD, and administrator workflows. Students apply for event permission and refunds; HODs review requests (including department-level team decisions), and administrators manage payment, records, and academic-year rollover. The tree and excerpts support distinct permission, refund, review, reporting, and maintenance areas. UI-to-endpoint wiring is not established by the available excerpts, so those links are shown as unverified; several backend modules are represented by their exact paths without assuming their internal behavior.
Main entry points: db.php Application database · academic_lib.php Academic-year rules · student.js Student portal · refund_lib.php Refund allocation
Components 28
Role interfaces
- Student portal
student/student.js - HOD portal
hod/hod.js - Admin portal
admin/admin.js
Event permissions
- Permission application
backend/apply_permission.php - HOD permission review
backend/hod_action.php - Permission rules
backend/permission_lib.php - Permission queries
backend/fetch_permissions.php - Request listing
backend/view_requests.php - Event checks
backend/check_event_duplicate.php
Refund processing
- Refund application
backend/apply_refund.php - Refund decisions
backend/hod_refund_action.php - Refund allocation
backend/refund_lib.php - Group refund status
backend/fetch_group_refund_status.php - Admin payment approval
backend/approve_request.php
Administration and reporting
- Admin refund queues
backend/admin_requests.php - Archived requests
backend/admin_archive_requests.php - Refund export
backend/download_excel.php - Student grant report
backend/student_grant_report.php - Academic-year rules
backend/academic_lib.php - Year rollover
backend/rollover_academic_year.php - Student import
backend/upload_students.php - Student template
backend/download_student_template.php - Session authorization
backend/auth_check.php - Sensitive-data encryption
backend/crypto.php
Other components
- Application database
backend/db.php - Student
- HOD
- Administrator
Connections 31
- Student → Student portal: uses
- HOD → HOD portal: uses
- Administrator → Admin portal: uses
- Student portal → Permission application: submits
- Student portal → Refund application: applies
- Student portal → Group refund status: checks
- HOD portal → HOD permission review: reviews
- HOD portal → Refund decisions: reviews
- Admin portal → Admin refund queues: manages
- HOD permission review → Permission rules: calls
backend/hod_action.php - Permission application → Application database: reads/writes
- Refund application → Application database: reads/writes
backend/apply_refund.php - Refund application → Academic-year rules: uses
backend/apply_refund.php - Refund decisions → Refund allocation: calls
backend/hod_refund_action.php - Admin payment approval → Refund allocation: calls
backend/approve_request.php - Admin refund queues → Sensitive-data encryption: decrypts
backend/admin_requests.php - Admin refund queues → Academic-year rules: uses
backend/admin_requests.php - Archived requests → Sensitive-data encryption: decrypts
backend/admin_archive_requests.php - Archived requests → Academic-year rules: uses
backend/admin_archive_requests.php - Refund export → Refund allocation: uses
backend/download_excel.php - Refund export → Sensitive-data encryption: uses
backend/download_excel.php - Student grant report → Refund allocation: calls
backend/student_grant_report.php - Student grant report → Academic-year rules: uses
backend/student_grant_report.php - Year rollover → Academic-year rules: uses
backend/rollover_academic_year.php - Year rollover → Application database: archives
backend/rollover_academic_year.php - Student import → Application database: writes
backend/upload_students.php - Student template → Application database: reads
backend/download_student_template.php - Permission queries → Application database: queries
backend/fetch_permissions.php - Request listing → Application database: queries
backend/view_requests.php - Event checks → Application database: checks
- Session authorization → Student: authenticates