Skip to main content

UI Mockup — Cash Settlement

Open Prototype Index

Local:

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

3 screens

#ScreenMockupDescription
1Sell credits (modal)sell-credit.htmlModal from entity detail — credits, cash, payment, status (no buyer picker)
2Cash transactionscash-transaction-list.htmlSummary, filter, history table, export CSV
3Transaction detailcash-transaction-detail.htmlView-only — info, credit link, audit

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

└── submit ──► Transaction detail

List ──[click tx code]──► Transaction detail

Shared across 3 hierarchy flows

Same modal on 3 portals — buyer from detail page context, no dropdown picker:

PortalOpen fromBuyer (context)
AdminSuper Agent detailSuper Agent being viewed
Super AgentAgent detailAgent being viewed
AgentShop detailShop being viewed

Form fields match each flow spec:


Screen 1 — Sell credits (modal)

Layout: Modal opened from entity detail — buyer shown read-only in context bar.

SectionContent
1. Credit amountCredits, cost rate, expected cash (auto)
2. Cash & paymentActual amount received, method, date/time, currency
3. StatusStatus select; extra fields if "Partially paid"
4. ReferenceExternal reference, note (optional)

Mockup UI uses English. Implementation: @kioskgaming/ui / portal-cash-settlement.


Screen 2 — List

ComponentDescription
Summary cardsTotal transactions, total due, paid in full, unpaid / partial
FilterSearch, flow (Admin→SA / SA→Agent / Agent→Shop), status, method, date range
TableTx code, flow, seller, buyer, credit, cost rate, due, received, method, status, date
ActionsExport CSV only — sell credits from entity detail

Screen 3 — Detail (view-only)

ComponentDescription
HeaderTx code, flow + status badge — no action buttons
Summary cardsCredits issued, amount due, amount received, payment date
Transaction infoKey-value for all form fields
Credit transactionLinked info (read-only, no link/button)
Audit logTimeline — view only

Temporarily not included: update status, cancel transaction, add note, open credit transaction.


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

phase2-counter.html — Deposits tab

ScreenDescription
Tab Receivable — DepositsPlayer pays cash → receives credits; margin, receipt
SummaryCounter Cash In, Gross margin

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

Deposit auto-settled on complete — differs from Phase 1 Sell credits modal.


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

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

ScreenDescription
Tab Payable — RedemptionsPlayer redeems credit → cash; pending approval
SummaryCounter Cash Out
Shift reconciliationCash Out in Expected Closing Cash

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

Redemption is Phase 3 because of approval threshold, shift Cash Out, reversed cash direction vs deposit.


Phase 1 — Shop payable (hierarchy)

ScreenFile
Shop pays Agentshop.html

Mockup files

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