Phạm vi tài liệu
Wiki cố ý tập trung vào các domain trọng tâm: Subscription, Booking, Finance, Payment, Master Data, Staff, Incident Management, Communication, Platform (+ Nền tảng dùng chung). Hệ thống AIMY thực tế lớn hơn nhiều. Trang này nói rõ cái gì có và cái gì chưa để bạn không hiểu nhầm.
✅ Trong phạm vi
| Domain | Bao phủ |
|---|---|
| Platform | EntityEvent flow, notification platform (event-driven + direct), entity history, run-history & observability. |
| Communication | Pipeline gửi, campaign, UserMessage, OutgoingMessage, template, automation/reminders, report subscription. |
| Subscription | Subscription/Enrollment, billing schedule, invoice schedule/approve/skip, add-on/discount, booking subscription. |
| Booking | Normal booking (TermBookingOrder/TermBooking) lifecycle, discount rule, combine booking rule, double-booking guard, measurement, cancel/attendance. |
| Finance | Billing, invoice, credit note, finance transaction projection, invoice manager, preview billing diff, Xero/accounting sync, subsidy overview. |
| Payment | Payment method settings, PayLater, PayNow/Windcave, Direct Debit/Kiwi, Deposit, checkout success/result. |
| Master Data | Enterprise/BU/Org/Site, Account/Account Holder, Attendee, Program/Term/TPS/Product, profile/system images. |
| Staff | Roster weekly planner, leave, timetable, availability, profile, staff home, staff medical customization, leave manager, archive-login rule. |
| Incident Management | Incident/Accident/Illness lifecycle, affected attendees, generated PDF, send-to-customer, acknowledgement/signature, audit/history. |
| Customer Portal / My Home | Bootstrap theo app mode, My Home (Calendar/Timetable/Profile), timezone theo ServiceArea + user, My Subscriptions, share link, site contact display. |
| Dashboard / Telemetry | Read model thống kê theo BusinessUnit (attendance, booking, revenue), công thức metric, cache/TTL, telemetry user. |
| Payroll / Timesheet | Cấu hình payroll theo BU (Rostered/Actual), chấm công & shift, export timesheet CSV qua jsReport, leave-only approval. |
| Nền tảng | Topi/Tuke/Tux, DB & lưu trữ, domain model/aggregates, timezone, quy ước & nguyên tắc. |
Timezone/DateTime là vấn đề cross-cutting → đã tóm tắt riêng ở Nền tảng → Timezone.
Nếu một cụm mới trở nên quan trọng, bổ sung vào wiki theo cùng khuôn mẫu domain hiện tại: Tổng quan → Khái niệm → Kiến trúc → Dữ liệu → Case.