Transactions views #2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The user account should show the user's balance in both currencies.
create an /admin/transactions view
it shows store liability for each currency
it shows 10 most recent transactions
it shows top 10 whales by sats
it shows top 10 whales by cents
it has an input which accepts a user_id or email
it has a submit button
if a user_id is submitted, it tries to get the user
if an email is submitted, it tries to get the user
if the user is not found, redirect to /admin/transactions and show an error banner
if a user is found, redirect to /admin/transactions/add
create an admin/transactions/add view
it shows the information about the user which is in the session from the email or user_id lookup
it has a number input set the amount
it has a select to choose CREDIT or REVOKE
it has a select to choose SATS or CENTS
it has a submit button
it runs the transaction::add to credit/revoke the user balance