MEGAINFRA-WEBAPP/docs/n8n
DEls 4a2e39be86 feat(purchase-orders): check a PO's site against its line cost codes
A PO's site was whatever the uploader or email picked, and process-batch
never re-checked it. Every MEGA PO line starts its cost code with the
project code ("C26/09, MC-SEW" is The Hills), which agreed with the filed
site on every live PO whose code is a site in the app.

After OCR, process-batch now reads those codes:
- all lines name the filed site -> confirmed
- all lines name one other site, nothing booked yet -> PO moves there and
  waiting deliveries are queued at the new site
- mixed projects, an unknown code, or receipts already booked -> flagged
  in raw_ocr_data.site_check, filed site kept
The check is never fatal: if the site list can't be read the PO is still
filed on the uploaded site.

Nellmapius Ext 25's code was corrected from 001 to C26/27 in the data;
the intake runbook is updated to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 22:59:30 +02:00
..
delivery-note-ocr.md docs(n8n): rewrite for the two-node tick workflow 2026-09-17 15:23:16 +02:00
delivery-reconciliation-api.md fix(dn): harden delivery-note matching, posting and PO reconciliation 2026-09-28 21:16:24 +02:00
po-email-intake.md feat(purchase-orders): check a PO's site against its line cost codes 2026-11-02 22:59:30 +02:00
po-email-intake.workflow.js feat(po-email): pre-flight duplicate check and filed labels 2026-10-28 23:17:52 +02:00
po-ingest-before-2026-10-04.json Integrate agent work and add dashboard attention indicators 2026-10-04 21:53:32 +02:00
purchase-order-ingest-implementation.md Integrate agent work and add dashboard attention indicators 2026-10-04 21:53:32 +02:00
purchase-order-ingest.md feat(po-email): n8n workflow + runbook to auto-file POs from the MEGA mailbox 2026-10-28 16:07:29 +02:00