asxpio/views/admin
Sergei Poljanski eeac07ed34
invoices: cancel with stamped PDF, superuser-only hiding
An invoice issued by mistake could only be left pending or marked paid.
Add cancel (with an optional reason) and reinstate. Cancelling renders a
third PDF variant with a diagonal CANCELLED stamp and the date/reason,
and it becomes the current one, so the client's link and download show
the invoice as void. Cancelled wins over paid in the status, and marking
a cancelled invoice paid is refused.

Superusers can also hide an invoice: it disappears from the admin list,
dashboard and invoice pages for every other user, while the client's
public link keeps working.

Assisted-by: Claude:opus-5
2026-10-10 08:35:01 +04:00
..
bingo admin: per-area permissions on every route 2026-10-10 08:27:37 +04:00
invoices invoices: cancel with stamped PDF, superuser-only hiding 2026-10-10 08:35:01 +04:00
users admin: user management, invites, password reset, audit log 2026-10-10 08:31:42 +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: user management, invites, password reset, audit log 2026-10-10 08:31:42 +04:00