asxpio/test
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_test.rb admin: per-area permissions on every route 2026-10-10 08:27:37 +04:00
admin_auth_test.rb admin: per-area permissions on every route 2026-10-10 08:27:37 +04:00
app_test.rb admin: user accounts and session login 2026-10-10 08:25:46 +04:00
bingo_test.rb admin: user accounts and session login 2026-10-10 08:25:46 +04:00
crypto_test.rb invoices: multi-crypto payment support 2026-07-03 02:01:57 +04:00
fmt_test.rb invoices: multi-crypto payment support 2026-07-03 02:01:57 +04:00
invoice_cancel_test.rb invoices: cancel with stamped PDF, superuser-only hiding 2026-10-10 08:35:01 +04:00
invoice_test.rb invoices: multi-crypto payment support 2026-07-03 02:01:57 +04:00
rate_limit_test.rb tests: minitest + rack-test suite, bin/test with ephemeral Postgres 2026-07-02 17:32:14 +04:00
test_helper.rb admin: user accounts and session login 2026-10-10 08:25:46 +04:00
users_admin_test.rb admin: user management, invites, password reset, audit log 2026-10-10 08:31:42 +04:00