End-to-end tuition example
The /students/tuition-fees route is a standard entry point to the same screen as /students/student-payments. This guide walks through finding a fee record and checking the remaining balance; see Student Payments for all filters and data sources, and Individual Discounts and Payments for detailed operations and limitations. Payment categories and discounts.
Find a student's tuition record
Open /students/tuition-fees. Choose an academic year and educational degree, then run the search. Narrow the results by learning format, faculty, profession, course, last name or first name. The URL retains the selected filters. Reset clears the filters and empties the table. The related route /students/student-payments opens the same screen.
A student must have an active enrollment carrying an active educational status for the selected year. Check the profession and degree on the enrollment and the year on the semester record. The course filter also requires an existing tuition record for that course. If a recently enrolled student is missing, try the search without the course and check their educational details.
Check the annual base
The list shows one row per student. The annual base comes from the student's tuition record, normally created when educational status is saved. Loading the list also attempts to create absent tuition records for students on the current page. The initial amount comes from the profession fee matching year, degree, learning format and exact profession. No matching price gives a zero base. When one student has multiple tuition records for a year, the table attaches one without an explicit ordering rule. Check the displayed program and course before entering a receipt.
Each semester has a discount type, percentage and amount. The total payable column adds the stored amounts for the semesters. It displays a dash when neither semester has a discount record and includes only the recorded semester when just one exists. The payment form uses half of the annual base for a semester without a discount record.
Grant a discount
- Open the discount action in the row menu. Check the student and the annual base. To use a different individual fee, edit the base and save it separately. Discount inputs are disabled while that change is pending. Saving the base recalculates existing semester discount amounts.
- For each of the two semesters select a discount type or enter a percentage from 0 to 100. A selected type fills in its catalog percentage, which you can override for this student. Leaving both fields empty applies zero percent. A student's funding category does not assign a discount automatically.
- Check the calculation. Each semester costs half of the annual base multiplied by
1 − percentage / 100. Save the discounts. Both semesters are submitted together.
Record a payment and reconcile the balance
- Open the payment action. Review the existing receipts on both semester tabs, then choose the semester being paid.
- Add a row. Enter an amount of at least 0.01, a payment method as text up to 255 characters and the payment date. For example, with an annual base of 600,000 and semester discounts of 20% and 0%, the two charges are 240,000 and 300,000. Enter 100,000 for the first semester, “Bank transfer” and the date of receipt.
- Review both tabs before saving. Saving replaces the payment list for the student, academic year and course with the rows in the form. At least one row is required. Confirming deletion of a previously saved receipt takes effect immediately. Closing the form afterwards leaves that receipt deleted.
- Reopen the payment action. Totals use saved receipts. In the example the student has paid 100,000 and owes 440,000. The view action shows amounts, methods and dates by semester and the combined total paid.
Permissions and scopes
Either tuition-fees or student-payments opens the route. The tuition list uses student-tuitions.index; changing the base uses student-tuitions.update. Choosing and applying discounts requires discounts.index and student-tuitions.discounts.apply. Reading receipts uses student-payments.student, saving them uses student-payments.sync, and deleting a saved receipt uses student-payments.destroy. The row menu shows actions available to the role. Table export is registered for the tuition list.
The finance routes declare no separate faculty, profession or department permission scope. The list queries students with additional active enrollment and year conditions. Selecting a faculty or course narrows the search results.
Implementation references
- frontend-edusystems · studentsRoutes.ts
- frontend-edusystems · index.tsx
- frontend-edusystems · StudentPaymentsDescriptor.tsx
- frontend-edusystems · StudentPaymentsService.ts
- frontend-edusystems · GrantDiscountModal.tsx
- frontend-edusystems · AcceptPaymentModal.tsx
- frontend-edusystems · PaymentViewModal.tsx
- backend-edusystems · StudentTuition/routes/api.php
- backend-edusystems · StudentTuitionRepository.php
- backend-edusystems · ActiveCurrentYearScope.php
- backend-edusystems · StudentTuitionService.php
- backend-edusystems · StudentPaymentService.php
- backend-edusystems · SyncPaymentsRequest.php