asxpio/views/admin
Sergei Poljanski 33ba7650c3
invoices: self-contained payout addresses
Crypto options were limited to a hard-coded asset list, with one
address per coin in a side table. A payout address now carries
everything an invoice needs: ticker, name, QR URI scheme, amount
parameter, CoinGecko id, address and an active flag. Any coin can be
added, several addresses per ticker are fine, and known tickers fill the
QR and rate fields from the built-in templates.

The new-invoice form picks a payout address. The invoice snapshots the
ticker, address, name, scheme and amount parameter, and the PDF and QR
render from that copy, so editing, retiring or deleting a payout entry
never changes an issued invoice. "Fetch live" looks up the rate by the
payout address's CoinGecko id.

Migration 012 keeps the existing rows and backfills both the payout
metadata and the snapshots on existing crypto invoices.

Assisted-by: Claude:opus-5
2026-10-10 09:17:09 +04:00
..
bingo admin: per-area permissions on every route 2026-10-10 08:27:37 +04:00
invoices invoices: self-contained payout addresses 2026-10-10 09:17:09 +04:00
users admin: invite links without a username 2026-10-10 09:12:21 +04:00
_nav.erb admin: per-area permissions on every route 2026-10-10 08:27:37 +04:00
account_password.erb admin: user accounts and session login 2026-10-10 08:25:46 +04:00
audit.erb admin: user management, invites, password reset, audit log 2026-10-10 08:31:42 +04:00
dashboard.erb admin: per-area permissions on every route 2026-10-10 08:27:37 +04:00
login.erb admin: user management, invites, password reset, audit log 2026-10-10 08:31:42 +04:00
reset_request.erb admin: user management, invites, password reset, audit log 2026-10-10 08:31:42 +04:00
set_password.erb admin: invite links without a username 2026-10-10 09:12:21 +04:00