ARDHOLT

Invoices In, Checked Approval List and Excel Export Out

Work

Automation · accounts payable · build record

A working invoice pipeline: 24 invoices read, arithmetic and duplicates checked, 14 exported, 10 flagged. Every figure is from a kept run record.

Every invoice on this page was produced by a script we kept, from six suppliers. Open the work: validated.csv ↓ · exceptions.csv ↓ · source ↓

24 invoices in: 14 written to validated.csv, 10 to exceptions.csv, each with its reason. The 10 faults were seeded by us.
24 invoices in: 14 written to validated.csv, 10 to exceptions.csv, each with its reason. The 10 faults were seeded by us.

What it does

Invoice PDFs go in. The pipeline reads the fields, checks each invoice against itself and against the rest of the batch, and writes an approval list for the ones that pass and an exceptions list, with reasons, for the ones that do not. Nothing is fixed quietly.

  1. Reads supplier, invoice number, date, PO number, net, VAT and gross from each PDF.
  2. Checks net + VAT = gross, VAT against the rate printed on the invoice, the line items against the net, and missing fields.
  3. Catches a repeated invoice number from the same supplier.
  4. Writes validated.csv and validated.xlsx, an approval list with an empty approved column, and exceptions.csv.

The recorded run

One run over 24 invoices from six suppliers, ten faults seeded by us. Counts below come from the run output, not from memory.

  1. 24 invoices in, 24 read, 14 exported, 10 flagged.
  2. 10 faults were seeded: 3 missing PO, 2 wrong VAT, 2 repeated invoice number, 1 wrong gross, 1 missing date, 1 line items not adding to the net. All 10 were flagged, none missed, none extra.
  3. On the 14 exported invoices: net 15,592.54 + VAT 3,118.50 = gross 18,711.04, checked by script.
  4. The run took 0.03 seconds on a loaded shared machine (load average 8.8 when it ran); this is not a speed test. 5 unit tests pass.
  5. Run again from a clean copy of the code: the same inputs gave the same CSV files, byte for byte. The Excel file differs in bytes (it stamps its creation time) but holds the same 14 rows.

What this does not show

The faults were seeded by us and the invoices were made by the same script the reader is built for, so 10 of 10 shows the checks work as written; it is not a measure of accuracy on other suppliers’ layouts. Scanned or photographed invoices, other layouts, other currencies and other VAT rates were not tested. Reading from images would need OCR, which is not built. No time-saved or monthly volume figure is given because none was measured.

Licences

Pipeline code: MIT, our own. Python standard library: PSF licence. pypdf 6.14.2: BSD-3-Clause. openpyxl 3.1.5: MIT. No fonts embedded. Invoices: produced by the generator.

Want one like it?

Send us what you have and what it needs to do. A written scope and fixed price follow. Nothing starts until you agree.

hello@ardholt.com

You deal with us directly, from the first reply to hand-over.

Get a quote → · See all the work