Skip to content

Link customer names to their manage form on the customers page - #36

Merged
valyo merged 1 commit into
mainfrom
customers-links
Nov 10, 2026
Merged

valyo merged 1 commit into
mainfrom
customers-links

Conversation

@valyo

@valyo valyo commented Nov 10, 2026

Copy link
Copy Markdown
Owner
  • Customer names in the Andelsbiodling and Lammandel booking tables, their invoice tables and the Sales list are now links to /customers?manage=. Sales that only have a free-text name stay plain text.
  • The Customers page reads ?manage= on load and clicks that customer's Manage button, so the form opens with the usual data, then removes the parameter from the URL so a refresh does not reopen it. An unknown id just shows the normal page.

Tests cover the links in the booking, invoice and sales lists (including the free-text sale) and the page markup that opens the form.

- Customer names in the Andelsbiodling and Lammandel booking tables, their
  invoice tables and the Sales list are now links to /customers?manage=<id>.
  Sales that only have a free-text name stay plain text.
- The Customers page reads ?manage=<id> on load and clicks that customer's
  Manage button, so the form opens with the usual data, then removes the
  parameter from the URL so a refresh does not reopen it. An unknown id just
  shows the normal page.

Tests cover the links in the booking, invoice and sales lists (including the
free-text sale) and the page markup that opens the form.
@valyo
valyo merged commit 55a5378 into main Nov 10, 2026
3 checks passed
@valyo
valyo deleted the customers-links branch November 10, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant