Car wash attendant piece-rate reconciliation tool - one minute of taps at shift end logging cars and service type, a self-filled rate table whose later edits never rewrite history (old entries keep the rate they were logged at), and a reconciliation mode where the shop's number goes in and the difference unrolls day by day - all data lives in the phone's browser and exports as a plain-text pay sheet you can paste into a chat
Build me a single-file HTML piece-rate reconciliation
tool for a car wash attendant. It opens and runs in a
browser with no internet and no external services.
1. Logging (daily screen, one minute at shift end):
- One entry: date (default today) / service (basic
wash, premium wash, interior, wax, assist -
editable list) / car count / optional note
- Entries grouped by day with a daily subtotal;
backfilling previous days allowed
- Deletes mark an entry hidden rather than purging
it (protection against fat fingers)
2. Rate table (settings screen, user-filled):
- One rate (per car) per service, editable anytime
- A rate edit applies only to entries logged after
the edit; existing entries keep the rate they
were logged at - this rule is mandatory
3. Monthly roll-up:
- Per month: car counts, rates, subtotals, and the
total piece pay (base salary stays out)
4. Reconciliation mode (the core feature, its own
entry point):
- Input the shop's or owner's monthly figure (per
service or a single total, both fine)
- Automatic comparison with the difference expanded
by day: which day, which service, how many cars
or how much money - one screen
- The net difference pinned to the top
5. Data safety:
- Everything in localStorage, this device only
- Export: plain-text monthly sheet (daily detail
plus totals) copyable into a chat app
- Import: pasting a previously exported text
restores the data (phone change, cache wipe)
- A persistent "last logged" date at the top that
changes color after X days without an entry
Interface: phone-first, one-handed, every service
selection by tap (zero typing), high-contrast gray
and white, thumb-sized buttons usable with wet hands.
Do not:
- No accounts, no cloud sync, no network requests of
any kind
- No decorative charts - a clear table is the whole
job
- No CDN dependencies - offline must be fully
functional
- All code in this one HTML file, double-click to
run
Why it is written this way
Reconciliation mode as a separate feature is the reason this tool exists. Logging apps are everywhere, but an attendant logs to contest, not to budget - when the month-end numbers disagree, what is needed is a day-by-day diff, not one total. Making the shop's figure an input and expanding the difference by day is what serves the tool's only real scenario. Without it, logging dies around day ten, because nobody keeps a ledger for thirty days that can never be used for anything.
Locking history against rate edits is the requirement a coding agent will get wrong unprompted. Rates will change - seasonal pricing, an oral new deal, a new service line - and if an edit rewrites history, the monthly roll-up turns to mush: every diff the reconciliation shows becomes a phantom caused by the rate change, and the real misses drown in it. "Entries keep the rate they were logged at" must be spelled out in the brief; the first version built without it will always be a global recalculation.
Local storage plus text import/export is persistence designed for people without a cloud. Phone swaps, cache wipes, and lost phones will outrun backup discipline, and the exported text pays twice - it is the backup and it is the evidence you paste to the owner, which carries more weight than a screenshot and infinitely more than a verbal claim. No accounts and no cloud is also privacy: an income ledger has no business living on someone else's server, and the registration-verification-forgot-password gauntlet kills nearly all willingness - the user of this tool should spend zero seconds logging in.
Phone-first, all taps, big buttons is not design snobbery; it is the physics of the scene. Hands are wet, the person is standing in the bay, and the log has to be done in one minute. Any typing, double-tapping, or sideways scrolling breaks the streak around day eleven - and a ledger with six silent days is nearly worthless at the table: with the record gapped, the remaining twenty-four days of entries convince no one.
Variables
| Variable | Description |
|---|---|
| Service list | Edit to the shop's piece-rate lines (some shops split basic wash into small and large cars - then two lines) |
| Reminder threshold X | Days of silence before the last-logged date changes color; two or three - too chatty becomes noise, too slack and the gap is unfixable |