WFDASH-WEBAPP/src
Dave f0c8787e3f fix(delivery-note-editor): the pricing route is PATCH, not POST
"Could not save line 'Husqvarna 578BTF backpack leaf blower' (405)" —
and nothing was written.

`/api/v1/delivery-notes/items/[id]/pricing` exports PATCH only. The
editor POSTed to it, so every save 405'd. The DN detail page has been
PATCHing the same URL correctly all along; I should have matched it
rather than assuming POST.

## Why it got through my verification

My browser check opened the editor, typed a cost, watched the totals
recompute — and stopped there. The save path is entirely separate
from the render path, and I never pressed Save, so I verified the one
half that was never broken.

Redone properly: changed a quantity 150 -> 7, pressed Save, reopened
the editor and read 7 back (the other three lines untouched at
150/150/2), then put it back to 150 so the data is as found. That is
the check that matters on these screens — display and persistence are
different code paths, and a perfectly-rendering dialog proves nothing
about either.

Suite: 3817 passing, tsc clean.
2026-10-09 10:22:28 +02:00
..
app feat(delivery-notes): edit the note before quoting, and fix the QuickBooks error 2026-10-09 09:27:09 +02:00
components fix(delivery-note-editor): the pricing route is PATCH, not POST 2026-10-09 10:22:28 +02:00
lib fix(quotes): stop quote_items markup going negative; round prices up 2026-10-08 07:13:07 +02:00
styles
middleware.ts
test-setup.ts