Portal / HP / UC-HP-02
NHHK 2024–2025 HK1 Cán bộ demo
HP · UC-HP-02

UC-HP-02 — Tinh hoc phi tu dong

Tinh hoc phi tu dong. This UC owns tuition/receivable/payment data and only reads SMS/QLSV/SRM/QLTS as integration context.

Nguồn: docs/modules/hp/use-cases/UC-HP-02.md · Sample data (fake VN)
S1 · Tuition calculation: preview

Tuition calculation: preview

API: `POST /api/v1/hp/tuition/calculate/preview` · DB: No write expected; response must be reconcilable to source config `MDGHP.NHHK`, `MDGHP.LoaiDGHP`, `MDGHP.MucDGHP`, `MDGHP.DonGiaHP`, `MDMLThu.LoaiDTHP` and exis
S2 · Tuition calculation: commit

Tuition calculation: commit

API: `POST /api/v1/hp/tuition/calculate` then `GET /api/v1/hp/tuition/calculations/{calculationId}?termCode={NHHK}` · DB: `MHPCT.IDHPCT`, `NHHK`, `IDSV`, `IDMH`, `KyHieuTP`, `NhomHoc`, `ToHoc`, `LoaiDTHP`, `IDNgThu`, `DonGiaHPCT`, `HeSoHP`, `ThanhTien`, `PhaiThu`, `TienPhat`, `SoTC
S3 · Student-level discount / override

Student-level discount / override

API: Reflected in calculation preview/commit totals · DB: `MHPCTSV.IDHPCTSV`, `IDSV`, `NHHK`, `PTMGCS`, `SoTienGiam`, `TTMienGiam`, `XLCoGiamSoTien`, `XLCoGiamCS`, `GCMienGiam`, `NgayThem`, `MaUser`
S4 · Calculation audit trail

Calculation audit trail

API: `GET /api/v1/hp/tuition/calculations/{calculationId}` · DB: `MLogHPCT.IDLogHP`, `IDHPCT`, `NHHK`, `IDSV`, `IDMH`, `LoaiDTHP`, `LoaiDGHP`, `MucDGHP`, `DonGiaHPCT`, `ThanhTien`, `TTienPT`, `TTienMG`, `PhaiThu`, `AcctionLog
S5 · Numbering / report side effect

Numbering / report side effect

Họ tênLớp/NgànhTrạng tháiGhi chú
SV22010001Nguyễn Văn AnCNTT-K18-01Đang họcQĐ/2025/810
SV22010015Trần Thị BìnhCNTT-K18-02Tạm dừngQĐ/2025/811
SV22010028Lê Minh ChâuKT-K18-01Đang họcQĐ/2025/812
SV22010042Phạm Quốc DũngQTKD-K18-01Nghỉ luônQĐ/2025/813
SV22010057Hoàng Thu HàNN-K18-03Đang họcQĐ/2025/814
SV22010063Vũ Đức KhoaCNTT-K18-01Tốt nghiệpQĐ/2025/815
API: Covered by calculate response/report metadata · DB: `MBoDemHP.IDBoDemHP`, `IDCap`, `IDPhanCap`, `IDNhCT`, `IDBoDem`, `IDSubReport`, `IDSubReportHoan`, `MaUser`, `NgayThem`