MEGAINFRA-WEBAPP/scripts/data
DEls e6a8f97767 feat(po-email): hourly mailbox check that files new POs into MEGA
scripts/po_email_intake.py reads ai@megainfra.co.za through Mail.app, pulls the PO
documents out of unseen messages, reads the PO number, site and supplier from the
document, checks for duplicates by file hash and by PO number, and files what is new
into the same purchase_orders pending queue the browser upload uses so the existing
MEGA - Purchase Order Ingest workflow finalises it. Anything it cannot place is
flagged for review instead of being filed against a guessed site.

A scheduled task runs it every hour (7 * * * *, Africa/Johannesburg).
2026-11-02 22:37:12 +02:00
..
backups feat(sites): import payment certificates into Inflows with cumulative chart 2026-10-27 10:53:54 +02:00
po-email-intake feat(po-email): hourly mailbox check that files new POs into MEGA 2026-11-02 22:37:12 +02:00