asxpio/views/admin/invoices
Sergei Poljanski 1dd8f9081f
All checks were successful
Build and Deploy to Production / test (push) Successful in 26s
Build and Deploy to Production / build (push) Successful in 59s
Build and Deploy to Production / deploy (push) Successful in 38s
invoices: payout addresses in the database
Default crypto payout addresses lived in the CRYPTO_ADDRESSES and
LTC_ADDRESS Forgejo secrets, so changing one meant editing a secret and
redeploying. Keep them in a payout_addresses table edited at
/admin/invoices/payout-addresses (read to view, write to change, every
change audited), and prefill the new-invoice form from it.

The old env values are imported once on the first boot with an empty
table, so the current addresses carry over; after that the secrets can
be removed.

Assisted-by: Claude:opus-5
2026-10-10 08:36:32 +04:00
..
index.erb invoices: payout addresses in the database 2026-10-10 08:36:32 +04:00
new.erb invoices: payout addresses in the database 2026-10-10 08:36:32 +04:00
payout_addresses.erb invoices: payout addresses in the database 2026-10-10 08:36:32 +04:00
show.erb invoices: cancel with stamped PDF, superuser-only hiding 2026-10-10 08:35:01 +04:00