📚 Encyclopedia

Business · updated 2026-10-13

Designing a quoting and invoicing app for a solo tradesman

invoicingquotespricebookdata-modelsmall-businessplumbing

Lessons from building plumb, a self-built (no SaaS) quote, invoice and receipt tool for an owner-operator plumber, first as a PHP web app and then as a local-first Flutter Android app. The core idea: the plumber dictates what he did (on the drive home, or in the customer's driveway), and gets draft quotes and invoices, a materials list and follow-ups to review. The data model and safety rules below apply to any trade paperwork tool.

Rules that make drafted paperwork safe to send

  1. Prices come only from the owner's own pricebook. Neither AI nor fuzzy matching ever invents a selling price. Anything not in the pricebook is stored unpriced and flagged.
  2. Nothing flagged reaches a customer. A document with open flags cannot be marked sent, and drafts are not viewable through the customer link.
  3. Nothing flagged changes the owner's numbers. A receipt read with problems never updates "last price paid" costs until confirmed.
  4. Legal wording comes from fixed templates, never generated text (license numbers, required notices; see Where a solo plumber's time goes (software opportunity research)).

Data model

Workflow features that mattered

Web app security basics used

Session cookie (30 days, HttpOnly, SameSite=Lax, Secure when X-Forwarded-Proto is https), a custom X-Plumb: 1 header required on every POST as a cheap CSRF guard (cross-site forms cannot set custom headers), login throttling after 5 wrong passwords for 15 minutes, and a one-time setup code required to create the first password on a fresh deployment. A separate developer sign-in (its own hash in server config, never becoming the owner password) allows debugging before the owner has an account; remember it shares the live database.

Product lessons

See also

Linked from

Sources: plumb memory (plumb-canon, plumb-architecture, plumb-android-app), 2026-10-05/06