Main page. Just simple HTML, CSS and JS. https://asxp.io
  • Ruby 66.9%
  • HTML 23.5%
  • CSS 5.9%
  • JavaScript 2.7%
  • Nix 0.4%
  • Other 0.6%
Find a file
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
.forgejo/workflows bingo: stop serving bingo.asxp.io 2026-10-10 06:07:37 +04:00
bin tests: minitest + rack-test suite, bin/test with ephemeral Postgres 2026-07-02 17:32:14 +04:00
db invoices: cancel with stamped PDF, superuser-only hiding 2026-10-10 08:35:01 +04:00
lib invoices: cancel with stamped PDF, superuser-only hiding 2026-10-10 08:35:01 +04:00
public invoices: cancel with stamped PDF, superuser-only hiding 2026-10-10 08:35:01 +04:00
test invoices: cancel with stamped PDF, superuser-only hiding 2026-10-10 08:35:01 +04:00
views invoices: cancel with stamped PDF, superuser-only hiding 2026-10-10 08:35:01 +04:00
.dockerignore tests: minitest + rack-test suite, bin/test with ephemeral Postgres 2026-07-02 17:32:14 +04:00
.env.example bingo: serve bingo.asxp.io too, credit asxp.io in footer 2026-10-10 06:00:39 +04:00
.gitignore ltc payments 2026-06-08 18:43:01 +03:00
asxpio.rb invoices: cancel with stamped PDF, superuser-only hiding 2026-10-10 08:35:01 +04:00
bingo_web.rb bingo: planned status and capacity type 2026-10-10 06:59:04 +04:00
CLAUDE.md invoices: cancel with stamped PDF, superuser-only hiding 2026-10-10 08:35:01 +04:00
config.ru bingo: serve bingo.asxp.io too, credit asxp.io in footer 2026-10-10 06:00:39 +04:00
docker-compose.yml bingo: stop serving bingo.asxp.io 2026-10-10 06:07:37 +04:00
Dockerfile bingo: SEO pass and resized photos 2026-10-10 06:26:03 +04:00
flake.lock ruby rework with contact form 2026-05-05 00:45:27 +04:00
flake.nix gems: add pg, sequel, prawn, aws-sdk-s3 for invoicing 2026-05-26 17:29:21 +03:00
Gemfile tests: minitest + rack-test suite, bin/test with ephemeral Postgres 2026-07-02 17:32:14 +04:00
Gemfile.lock tests: minitest + rack-test suite, bin/test with ephemeral Postgres 2026-07-02 17:32:14 +04:00
Rakefile tests: minitest + rack-test suite, bin/test with ephemeral Postgres 2026-07-02 17:32:14 +04:00