WFDASH-WEBAPP/docs
Dave 16743f87ed docs: driver invoice photo handover - widen the filter, use confirm_collected
Tested the handover against live PB on 2026-10-27. The read path works as
written; four defects fixed:

- The filter only caught item_status = 'assigned'. The collection_pool
  tab group is [collection_pool, assigned, ready_delivery] and
  order_items.confirm_collected accepts collection_pool or assigned, so
  a line stuck in either was invisible to the sweep.
- Stock POs were not covered at all. Stock lines live in
  stock_purchase_items and their photos on the parent
  stock_purchases.additional_attachments.
- The write path hand-rolled order_items.update + update_status, which
  skips the eligibility check, the over-collect guard, drv_collected_at
  and the actor-stamped audit note. Now uses
  order_items.confirm_collected / stock_purchase_items.mark_collected.
- No de-duplication: the NSS M24 line is still 'assigned' with a photo,
  so every run would re-report it. Added a 'Waiting on a person' list.

Also noted that no cron runs this yet, that order_items_attachements is
multi-file (read every filename), and added a supplier check.
2026-10-27 07:07:40 +02:00
..
agents docs(hermes): bump tool count + add 'three quote-creation tools' callout 2026-08-27 07:50:17 +02:00
api-reference feat(quotes): add person_hint for customer resolution in forwarded emails 2026-08-27 11:11:44 +02:00
audit docs(quote-assistant): runbook accuracy, MCP tool listed in API docs 2026-10-16 23:42:44 +02:00
bugs docs(bugs): add post-mortem for MCP initialize handshake bug 2026-08-05 01:53:02 +02:00
example-quotes feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
pocketbase fix, feat, style: standardize quote numbers, polish UI 2026-07-10 22:21:50 +02:00
sops refactor(sops): streamline SOP documents for roles, consolidating content into quickstart guides for easier reference 2026-09-03 17:57:49 +02:00
superpowers docs(plan): AI order assistant implementation plan 2026-10-24 11:41:21 +02:00
theme-preview feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
0136daf3-3ebd-4bca-876e-316271a40303.jsonl feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
AGENT_INSTRUCTIONS.md docs(mcp): document stock_items.set_pricing and create pricing fields 2026-10-01 01:02:44 +02:00
api-mcp-layer.md docs(quote-assistant): runbook accuracy, MCP tool listed in API docs 2026-10-16 23:42:44 +02:00
collection-ai-checks.md feat(collection-confirm): collected stock orders go through Collection Confirm 2026-10-19 17:03:33 +02:00
collection-return-to-pool.md feat(collection): return mistaken pickups to pool 2026-10-21 03:37:01 +02:00
core-recheck-matrix.md chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
counter-pwa.md feat(counter): add standalone counter order PWA 2026-08-13 09:27:20 +02:00
deliveries-n8n-workflow.md feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
dev-guide.md feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
django-nextjs-parity-backlog.md feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
driver-app-data-source.md feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
handover-driver-invoice-photos.md docs: driver invoice photo handover - widen the filter, use confirm_collected 2026-10-27 07:07:40 +02:00
manager-orders.md feat(manager): a mobile orders board for the managers at /manager 2026-10-26 23:09:01 +02:00
migration-audit.md chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
n8n-ai-insights-prompt.md feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
n8n-mcp-setup.md feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
n8n-watchdog-agent-instructions.md fix(quotes-intake): clamp email_body to PB's 5000-char cap 2026-09-08 10:28:20 +02:00
order-assistant.md feat(orders): quote matching is AI-only 2026-10-24 20:49:26 +02:00
order-items-schema-standard.md feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
order-workflow-rules.md feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
orders-first-rollout.md chore: standardize line endings and add full test + config scaffolding 2026-06-11 20:30:02 +02:00
pricelist-extraction.md feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
qa-review.md feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
qa-review.verify.md feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
quote-assistant.md docs: the size-aware POS matcher and the exact/closest rule 2026-10-24 23:09:53 +02:00
quotes-email-monitor.md feat(quotes): resolve customer from person_hint when rep forwards email 2026-08-27 10:45:51 +02:00
quotes-outbound-attachments-deploy.md feat(quotes): split attachments into internal vs outbound with operator upload UI 2026-09-09 13:43:56 +02:00
rep-performance-data-source.md feat(audit): implement audit trail for delivery notes and orders 2026-09-30 01:48:44 +02:00
SHIPPED.md feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00
tv-dashboard.md feat(tv-dashboard): enhance TV dashboard with driver stops and performance metrics 2026-08-19 10:16:49 +02:00
wfdash-v5-deployment.md feat(item-history): add getItemHistory service with 5 PB queries 2026-07-29 14:51:58 +02:00