Cash Settlement Management
Đối soát cash — Phase 1 hierarchy, Phase 2 deposit, Phase 3 redemption tại quầy.
Admin → Super Agent
Admin bán credit cho Super Agent bằng cash.
Super Agent → Agent
Super Agent bán credit cho Agent bằng cash.
Agent → Shop
Agent bán credit cho Shop bằng cash.
UI Mockup
3 màn hình thiết kế — bán credit, danh sách, chi tiết giao dịch tiền mặt.
Tasks — Admin → Super Agent
Danh sách task triển khai luồng Admin bán credit cho Super Agent bằng cash.
Tasks — Super Agent → Agent
Danh sách task triển khai luồng Super Agent bán credit cho Agent bằng cash.
Tasks — Agent → Shop
Danh sách task triển khai luồng Agent bán credit cho Shop bằng cash.
Schema — cash_transactions
Thiết kế bảng cash_transactions và cash_transaction_events cho Cash Settlement.
UI Package — portal-cash-settlement
Component dùng chung trong @kioskgaming/ui cho Cash Settlement (3 portal).
Shop/Cashier → Player (Deposit)
Phase 2 — Player nộp tiền tại quầy, nhận credit vào game wallet.
Player → Shop/Cashier (Redemption)
Phase 3 — Player đổi credit lấy tiền mặt tại quầy.
Tasks — Shop/Cashier → Player (Phase 2)
Task triển khai ledger deposit tại quầy — flow shop_player_deposit.
Tasks — Player → Shop/Cashier (Phase 3)
Task triển khai ledger redemption tại quầy — Player đổi credit, Shop trả tiền mặt.
Review — Backend Cash Settlement V1
Code review tổng hợp 3 luồng Admin→SA, SA→Agent, Agent→Shop (backend).