asxpio/lib
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
..
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: multi-crypto payment support 2026-07-03 02:01:57 +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
mailer.rb admin: user management, invites, password reset, audit log 2026-10-10 08:31:42 +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: user management, invites, password reset, audit log 2026-10-10 08:31:42 +04:00