WFDASH-WEBAPP/docs/superpowers
Dave 45529731a7 feat(delivery-pool): assign invoiced deliveries to drivers, close with the signed copy
New /delivery-pool page, a clone of the Collection Pool for deliveries
with no pending stage. Invoiced lines are grouped per company, one card
per customer invoice; a card expands to its lines. Assign a driver and
day per invoice (or bulk per company); uploading the signed copy adds it
to every line, marks the lines completed + delivered_at, and closes a
delivery note once none of its lines is still open.

- Driver lives in new order_items.delivery_driver / delivery_assigned_at
  (npm run pb:migrate:delivery-pool), never drv_id (collection driver).
- Pool starts at DELIVERY_POOL_START (2026-10-30); lines whose DN is
  already completed/cancelled (POS counter sales) are left out.
- Service + /api/v1/delivery-pool routes (browser session); the service
  503s until the migration has run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 09:55:35 +02:00
..
plans docs(plan): AI order assistant implementation plan 2026-10-24 11:41:21 +02:00
smoke-tests docs(item-history): add manual smoke-test checklist for 4 env-var modes 2026-07-29 15:16:40 +02:00
specs feat(delivery-pool): assign invoiced deliveries to drivers, close with the signed copy 2026-10-31 09:55:35 +02:00