asxpio/views
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 invoices: cancel with stamped PDF, superuser-only hiding 2026-10-10 08:35:01 +04:00
bingo bingo: planned status and capacity type 2026-10-10 06:59:04 +04:00
partials remove contact form 2026-08-04 01:25:50 +04:00
contact.erb remove contact form 2026-08-04 01:25:50 +04:00
index.erb site: multi-page structure with shared nav; rework services, keys, contact 2026-07-16 20:01:26 +04:00
invoice_public.erb invoices: cancel with stamped PDF, superuser-only hiding 2026-10-10 08:35:01 +04:00
keys.erb site: multi-page structure with shared nav; rework services, keys, contact 2026-07-16 20:01:26 +04:00
layout.erb layout: drop font CDNs, OG image meta, refreshed JSON-LD 2026-07-16 20:01:25 +04:00