Sajjad Mahessar Good Merch Group Free audit
~/sajjad $ cat projects/invoice-pipeline ← cd ../projects Data & reporting

Invoice pipeline automation

Working

Sweeps a full week of mailbox traffic, extracts invoice attachments in mixed formats — PDFs and photographed invoices — and files them by week and supplier. Feeds the weekly cost-of-sales cycle.

Type
Automation
Category
Data & reporting
Built with
Python (stdlib only) · Microsoft Graph · Device-code OAuth
Project
31 of 37
Finder showing invoices filed by week then by site
MAILBOX · ONE WEEK ATTACHMENTFILTER WK 32 SUPPLIER A SUPPLIER B SUPPLIER C WK 33 PDFJPGPDF
A full year of weeks, each split by site and supplier

Two failed approaches first

  • The local mail store never pre-fetches server attachments — roughly 1,200 of 5,000 messages sat as partial files with nothing attached, and forcing a download made it worse.
  • The low-code route died on licensing: the mailbox licence was mail-only with no file storage, so the platform could read the mailbox but had nowhere to write.
Re-architected server-side against the Graph API with device-code authentication and a cached token. Runs on the standard library alone.
Analysis

Draught range & pricing review

Six-line bar modelled at +£105 a week

PythonEPOS exportsSupplier price listMarket price data
Data & CRM

Candidate database & recruitment CRM

27 spreadsheets into 28,686 candidates

PythonpandasSupabasePostgreSQL
No charge

I’ll find the money before you pay me anything.

Send me your software subscriptions and I’ll come back with what’s replaceable and what it’s worth — free, and yours to keep either way. How it works →

Contact

Want the same done to your cost base?

Open to operations, automation and technical operations roles — and to talking with anyone running a multi-site business who suspects they're paying for software they could own instead.