Cash Settlement Management
Tài liệu theo từng luồng:
- Phase 1 — hierarchy (Admin → Shop)
- Phase 2 — Shop/Cashier → Player (deposit tại quầy)
- Phase 3 — Player → Shop/Cashier (redemption tại quầy)
Phase 1 — Hierarchy (bán credit offline)
| # | Luồng | Trang |
|---|---|---|
| 1 | Admin → Super Agent | Xem |
| 2 | Super Agent → Agent | Xem |
| 3 | Agent → Shop | Xem |
Phase 2 — Counter deposit
| # | Luồng | Trang |
|---|---|---|
| 4 | Shop/Cashier → Player (Player nộp tiền, nhận credit) | Xem |
Phase 3 — Counter redemption
| # | Luồng | Trang |
|---|---|---|
| 5 | Player → Shop/Cashier (Player đổi credit lấy tiền mặt) | Xem |
Task triển khai
| # | Luồng | File tasks |
|---|---|---|
| 1 | Admin → Super Agent | tasks-admin-to-superagent |
| 2 | Super Agent → Agent | tasks-superagent-to-agent |
| 3 | Agent → Shop | tasks-agent-to-shop |
| 4 | Shop/Cashier → Player (deposit) | tasks-shop-cashier-to-player |
| 5 | Player → Shop/Cashier (redemption) | tasks-player-to-shop-cashier |
Phase 1: thứ tự 1 → 2 → 3 — nền
cash_transactions, portal hierarchy.Phase 2: deposit ledger — Player nộp tiền tại quầy (shop-cashier-to-player).
Phase 3: redemption ledger — tách riêng vì approval, Cash Out shift, nghiệp vụ ngược (player-to-shop-cashier). Ship sau Phase 2.