Purpose
After selecting the student by year and educational degree in Student Payments, open their row menu. Operations concern the individual's tuition record for a particular student, academic year and course. They do not change the profession's shared tariff or create a banking payment instruction.
Change annual tuition and grant discounts
Choose Discount. The top section shows the individual annual tuition amount; the two sections cover semesters 1 and 2.
- If an authorized correction of base tuition is needed, enter the new amount (UI range 0–100,000,000) and press the separate Save button beside it. The server accepts a non-negative number and recalculates existing discounts using their stored percentages against the new base.
- Discount controls and saving are disabled while the changed base tuition remains unsaved.
- In each semester choose a preset from the discount catalogue or leave it blank. Selecting a type fills its default percentage. You can override it manually from 0–100, or enter a percentage without a preset.
- Verify the computed amounts and press the discount save action.
An individual discount record belongs to one semester. Each semester's base is half the annual tuition:
Semester tuition after discount = annual tuition / 2 × (1 − percentage / 100).
| Example | Semester 1 | Semester 2 |
|---|---|---|
| Annual tuition | 600,000 | 600,000 |
| Semester base | 300,000 | 300,000 |
| Discount | 20% | 10% |
| Tuition after discount | 240,000 | 270,000 |
The resulting annual payable amount is 510,000. Changing the annual base to 640,000 would yield 256,000 and 288,000 for the two stored percentages.
Clearing the discount type clears its percentage; the form treats this as 0% and the server stores a zero-discount record with the full semester amount. Saving sends both semesters, updating each. A zero-percent record and no record are not interchangeable when reading the table's final amount. Editing a catalogue preset does not recalculate already applied personal percentages.
Base tuition and discounts save through separate operations. Closing the dialog after saving the annual amount does not undo that change. Reload or reopen the list to verify the result.
Record a payment
Choose Payment (Accept Payment). The dialog shows annual tuition after discounts, stored payment records and totals. If a semester lacks a discount record, the dialog uses half of the annual tuition for it.
Choose semester 1 or 2 and press +. Complete each row.
| Field | Rule | Example |
|---|---|---|
| Payment method | Required text, up to 255 characters | Bank transfer |
| Amount | Required number, server minimum 0.01 | 150,000 |
| Payment date | Required date; new rows default to today | 5 September 2026 |
Check the student, academic year and course selected in the main table. A payment date does not replace those criteria, and the server does not check whether it falls within the selected term. Multiple partial payments per semester are supported. The payment method is a text description, not bank account information or instructions for an actual transfer.
Saving replaces the entire payment list for both semesters of the selected student, year and course. The server removes previous rows for that combination and inserts the submitted rows again, so identifiers can change. Ensure that the other semester is loaded and reviewed too. At least one row must remain for the save operation. If another staff member is editing the same data, review the current list before saving to avoid losing entries.
Deleting an unsaved row affects only the form. Deleting a saved payment opens a confirmation; accepting it performs a separate server deletion immediately, even if the dialog is subsequently closed without an overall save. Payments have no trash restore action. Deleting a record is not a refund.
Verify paid amounts and outstanding balance
The payment summary calculates from saved payments loaded from the server, not the unsaved values being entered.
- Semester 1 paid: total of payments for term 1.
- Semester 2 paid: total of payments for term 2.
- Total paid: sum of both terms.
- Amount due in the dialog: the maximum of 0 and annual tuition after discounts minus total paid.
For example, with final tuition 510,000 and payments of 150,000 and 90,000 in semester 1 and 50,000 in semester 2, total paid is 290,000 and outstanding is 220,000. If paid exceeds 510,000, the dialog shows due 0, not a negative debt. The server does not separately prohibit overpayment while saving payments; reconcile amounts with actual institutional records. The server's per-semester statement balance, when used with its respective access, is the semester amount less payments without clipping negative values.
Choose View to inspect payment history. Separate semester 1 and semester 2 tables display methods, dates, amounts and total paid. This action does not change payments. It does not reconcile transactions with a bank or issue a payment receipt.
Access and troubleshooting
History requires student-payments.student, payment-list saving student-payments.sync, and deleting a payment student-payments.destroy. Discount application requires student-tuitions.discounts.apply, while changing base tuition needs its own student-tuitions.update permission. The discount selector additionally requires discounts.index. See Student Payments for scope details and list behavior.
- Payment will not save: verify an individual tuition record exists, there is at least one complete row, amount is positive and date is valid.
- Discount controls disabled: save the changed annual tuition amount first.
- Expected payments absent: verify student, year and course, reload the list, and do not save incomplete data after a loading error.
- Balance unchanged while typing: the summary is based on previously stored payments. Save valid data, then reopen View.
- Tuition changed after saving educational status: review tariff and individual values. Student details
Source references
- frontend-edusystems · AcceptPaymentModal.tsx
- frontend-edusystems · GrantDiscountModal.tsx
- frontend-edusystems · PaymentViewModal.tsx
- frontend-edusystems · StudentPaymentsService.ts
- backend-edusystems · api.php
- backend-edusystems · ApplyDiscountRequest.php
- backend-edusystems · UpdateStudentTuitionRequest.php
- backend-edusystems · SyncPaymentsRequest.php
- backend-edusystems · StudentTuitionService.php
- backend-edusystems · StudentTuitionDiscountRepository.php
- backend-edusystems · StudentPaymentService.php
- backend-edusystems · StudentPaymentRepository.php
- backend-edusystems · StudentPayment.php
- backend-edusystems · StudentTuitionDiscount.php
- backend-edusystems · StudentPaymentController.php