asxpio/lib
Sergei Poljanski 9128867a33
invoices: statistics page
Add /admin/invoices/stats with a year filter: invoiced, received and
outstanding totals in GEL at each invoice's captured rate (the one
currency every invoice has), overdue count, average days to pay, money
received per month by payment date as a bar chart with the same figures
in a table, per-currency totals, top clients and crypto option usage.
Cancelled invoices are left out of every amount; hidden ones follow the
usual superuser-only visibility.

Assisted-by: Claude:opus-5
2026-10-10 09:12:21 +04:00
..
admin_acl.rb admin: per-area permissions on every route 2026-10-10 08:27:37 +04:00
admin_auth.rb admin: user management, invites, password reset, audit log 2026-10-10 08:31:42 +04:00
audit.rb admin: user management, invites, password reset, audit log 2026-10-10 08:31:42 +04:00
bingo.rb bingo: planned status and capacity type 2026-10-10 06:59:04 +04:00
bingo_admin.rb admin: user management, invites, password reset, audit log 2026-10-10 08:31:42 +04:00
crypto_asset.rb invoices: payout addresses in the database 2026-10-10 08:36:32 +04:00
crypto_qr.rb invoices: multi-crypto payment support 2026-07-03 02:01:57 +04:00
crypto_rate.rb invoices: multi-crypto payment support 2026-07-03 02:01:57 +04:00
db.rb admin: user management, invites, password reset, audit log 2026-10-10 08:31:42 +04:00
fmt.rb invoices: multi-crypto payment support 2026-07-03 02:01:57 +04:00
gel_rate.rb nbg and auto fill GEL exchange rate 2026-06-08 19:29:25 +03:00
invoice.rb invoices: cancel with stamped PDF, superuser-only hiding 2026-10-10 08:35:01 +04:00
invoice_pdf.rb invoices: cancel with stamped PDF, superuser-only hiding 2026-10-10 08:35:01 +04:00
invoice_stats.rb invoices: statistics page 2026-10-10 09:12:21 +04:00
mailer.rb mailer: send account emails as "asxp.io admin" 2026-10-10 08:50:30 +04:00
payout_address.rb invoices: payout addresses in the database 2026-10-10 08:36:32 +04:00
rate_limit.rb rate limit: prune stale keys so @hits cannot grow unbounded 2026-07-02 17:31:19 +04:00
s3.rb bingo: fix photo rebuild on UTF-8 tagged S3 bodies 2026-10-10 06:32:06 +04:00
user.rb admin: user management, invites, password reset, audit log 2026-10-10 08:31:42 +04:00
users_admin.rb admin: let superusers rename accounts 2026-10-10 08:45:20 +04:00