Skip to main content

UI Mockup — Cash Settlement

Mở Prototype Index

Local:

http://localhost:9000/prototypes/cash-settlement-management/

3 màn hình

#Màn hìnhMockupMô tả
1Sell credits (modal)sell-credit.htmlModal from entity detail — credits, cash, payment, status (no buyer picker)
2Cash transactionscash-transaction-list.htmlSummary, filter, bảng lịch sử, export CSV
3Chi tiết giao dịchcash-transaction-detail.htmlView-only — thông tin, credit link, audit

Luồng điều hướng

Super Agent / Agent / Shop detail ──[Sell credits]──► Modal (form)

└── submit ──► Chi tiết giao dịch

Danh sách ──[bấm mã GD]──► Chi tiết giao dịch

Dùng chung 3 luồng hierarchy

Cùng modal trên 3 portal — buyer lấy từ trang detail, không có dropdown chọn:

PortalMở từBuyer (context)
AdminSuper Agent detailSuper Agent đang xem
Super AgentAgent detailAgent đang xem
AgentShop detailShop đang xem

Field form khớp spec từng luồng:


Màn hình 1 — Sell credits (modal)

Layout: Modal mở từ entity detail — buyer hiển thị read-only ở context bar.

SectionNội dung
1. Credit amountSố credit, cost rate, expected cash (auto)
2. Cash & paymentSố tiền thực thu, hình thức, ngày giờ, currency
3. Trạng tháiSelect trạng thái; thêm field nếu "Partially paid"
4. ReferenceMã tham chiếu, ghi chú (tùy chọn)

Mockup UI dùng tiếng Anh. Implementation: @kioskgaming/ui / portal-cash-settlement.


Màn hình 2 — Danh sách

Thành phầnMô tả
Summary cardsTổng GD, tổng phải thu, đã thu đủ, chưa thu / một phần
FilterTìm kiếm, luồng (Admin→SA / SA→Agent / Agent→Shop), trạng thái, hình thức, khoảng ngày
BảngMã GD, luồng, seller, buyer, credit, cost rate, phải thu, thực thu, hình thức, trạng thái, ngày
ActionsExport CSV only — sell credits từ entity detail

Màn hình 3 — Chi tiết (view-only)

Thành phầnMô tả
HeaderMã GD, badge luồng + trạng thái — không có nút action
Summary cardsCredit đã cấp, phải thu, thực thu, ngày nhận tiền
Thông tin giao dịchKey-value toàn bộ field từ form
Credit transactionThông tin liên kết (read-only, không link/button)
Audit logTimeline — chỉ xem

Tạm thời không có: cập nhật trạng thái, hủy giao dịch, thêm ghi chú, mở credit transaction.


Phase 2 — Counter deposit (Shop/Cashier → Player)

phase2-counter.html — Deposits tab

Màn hìnhMô tả
Tab Receivable — DepositsPlayer nộp cash → nhận credit; margin, receipt
SummaryCounter Cash In, Gross margin

Spec: shop-cashier-to-player · Tasks: tasks-shop-cashier-to-player

Deposit auto-settled khi complete — khác modal Sell credits Phase 1.


Phase 3 — Counter redemption (Player → Shop/Cashier)

phase2-counter.html — Redemptions tab · Shift: phase3-shift.html

Màn hìnhMô tả
Tab Payable — RedemptionsPlayer đổi credit → cash; pending approval
SummaryCounter Cash Out
Shift reconciliationCash Out trong Expected Closing Cash

Spec: player-to-shop-cashier · Tasks: tasks-player-to-shop-cashier

Redemption tách Phase 3 vì approval threshold, Cash Out shift, chiều cash ngược deposit.


Phase 1 — Shop payable (hierarchy)

Màn hìnhFile
Shop trả Agentshop.html

File mockup

site-documents/static/prototypes/cash-settlement-management/
├── index.html
├── sell-credit.html # Phase 1 hierarchy — sell modal
├── cash-transaction-list.html
├── cash-transaction-detail.html
├── shop.html # Phase 1 — shop payable to agent
├── phase2-counter.html # Phase 2 Deposits tab + Phase 3 Redemptions tab
├── phase3-shift.html # Phase 3 — shift / Cash Out context
├── styles.css
└── app.js