MEGAINFRA-WEBAPP/docs
DEls e7df31f7e1 docs(delivery-notes): spec the inbox pipeline, unit fix and Kanban board
Diagnoses why multi-note delivery slips lose data and specifies phases 1-3
of the fix.

Root cause: the n8n workflow's "Match items to PO" Code node runs in
runOnceForAllItems mode and returns a single item, so the workflow makes
exactly two callbacks regardless of how many notes a document holds. A
4-note scan produced 2 promoted notes and 2 empty records in an invisible
status, while reporting auto-verified at 95% confidence.

Also found: delivery notes are weighbridge tickets in kg while PO lines are
priced per ton, and nothing converts. po-fulfilment and delivery-note-value
therefore overstate received quantity 1000x across all 57 existing rows.

Phase 1 fixes the unit model and migrates existing data. Phase 2 moves
ingestion into a staged inbox with a deterministic validation gate, so
nothing reaches delivery_notes unless every page is accounted for. Phase 3
renders that state machine as a Kanban board.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 11:00:46 +02:00
..
n8n docs(n8n): repoint PO ingest workflow at purchase_orders 2026-09-11 14:46:57 +02:00
setup feat(delivery-notes): enhance delivery note upload and processing 2026-08-26 15:33:30 +02:00
superpowers docs(delivery-notes): spec the inbox pipeline, unit fix and Kanban board 2026-09-17 11:00:46 +02:00
api-reference.md feat(dashboard): enhance operations dashboard with rain outlook and coordinate support 2026-09-06 19:59:52 +02:00
architecture.md feat(dashboard): enhance operations dashboard with rain outlook and coordinate support 2026-09-06 19:59:52 +02:00
cooler-env.template docs(deploy): document POCKETBASE_ADMIN_TOKEN for process-batch + n8n 2026-08-19 20:01:45 +02:00
data-flows.md docs(schema): bring bootstrap and data-model docs back to truth 2026-09-11 16:17:41 +02:00
data-model.md docs(schema): bring bootstrap and data-model docs back to truth 2026-09-11 16:17:41 +02:00
minimax-multi-site-audit-prompt.md feat(dashboard): enhance operations dashboard with rain outlook and coordinate support 2026-09-06 19:59:52 +02:00
modules.md feat(dashboard): enhance operations dashboard with rain outlook and coordinate support 2026-09-06 19:59:52 +02:00
multi-site-assessment.md feat(dashboard): enhance operations dashboard with rain outlook and coordinate support 2026-09-06 19:59:52 +02:00
operations.md feat(dashboard): enhance operations dashboard with rain outlook and coordinate support 2026-09-06 19:59:52 +02:00
pwa-install-verification.md docs(pwa): manual install verification steps for real devices 2026-08-30 22:42:55 +02:00