Repository navigation
Record a whole bar delivery note on one sheet - #1705
Conversation
The stock register gains Record a delivery note: every active item on one sheet, a count and a cost per line, filled from the order list if wanted, saved as one batch of ordinary delivery movements. The route reads the catalogue with one fixed statement and refuses retired, unknown or repeated items for the whole note.
…note # Conflicts: # docs/decisions/README.md
Every view shares one cookie jar, so a session written into document.cookie could be overwritten before the case's first visit, and the console then sent the officer to /sign-in. The suite now grants a registered member ADMIN and signs each case in with signInView, as every other suite does.
|
e2e (6/10) failed in Generated by Claude Code |
|
e2e (9/10) failed one case, "a register opens on the day (G-115 criterion 1) > the button itself is disabled before the day, and enabled on it", with Generated by Claude Code |
|
The re-run of e2e (9/10) passed the register case but failed a different one: No fix exists yet. I looked at Generated by Claude Code |
…note # Conflicts: # docs/decisions/README.md
The first case runs on a dev server that has just booted, and under bun's 5-second default it timed out before the home page had compiled.
|
I've also cherry-picked #1710 here (5573b25). It gives Generated by Claude Code |
…note # Conflicts: # docs/decisions/README.md
Requested by Matt · project thread
The third proposal from the admin UX audit (report), after #1703 and #1704. Matt approved it on 25 October. It is decision record 0254.
What changes
POST /api/admin/bar/deliveries, which writes them as ordinary delivery movements in onedb.batch. The route reads the catalogue with one fixed statement (0006) and refuses the whole note if any line names a retired, unknown or repeated item.deliveryNoteFormandMAX_DELIVERY_LINESlive inshared/utils/bar.ts. The route is registered in the audit-coverage list, since stock movements are their own record.Docs
Checks
lint,check(7/7),typecheck,typecheck:bunand the unit tests.tests/e2e/bar-catalogue.test.ts. CI is the check for the e2e suite.Generated by Claude Code