From delivery notes to ledger: finance-ready records with AI

AI can read invoices and delivery notes, but finance needs records it can post. How SARS tax-invoice rules and three-way matching turn extracted data into both.

Westerwick5 min read

A few printed pages and a black pen lying on a dark wooden table
Photo: 2H Media on Unsplash (Unsplash License)
On this page

Every business runs on paper it didn't design: supplier invoices, delivery notes, goods received notes, fuel slips, timesheets. AI can now read most of them. But a set of extracted fields isn't the same as finance-ready records, meaning entries your finance team can post, claim VAT on and defend in an audit.

The gap between the two is mostly business rules, and most of those rules already exist.

Reading isn't the hard part any more

Document AI has become good at pulling structure out of messy paper. Amazon Textract, for example, extracts data "from almost any invoice or receipt without the need for any templates or configuration"5. It also maps different labels to one standard field. Bill number, invoice number and receipt number all become a single invoice ID5. Its standard fields include the supplier's and recipient's VAT numbers5.

We compared the main AWS options for this step in automating document intake on AWS. This article is about what happens next: turning what the AI read into something finance can use.

Different documents, different jobs

The first design decision is to treat each document type separately, because each one proves something different:

  • Supplier tax invoice: supports the VAT input-tax claim and the payable.
  • Delivery note or goods received note (GRN): proves what physically arrived and how much.
  • Purchase order: records what you agreed to buy, and at what price.
  • Fuel slips, till slips and receipts: support expense claims and smaller VAT claims.
  • Timesheets: feed payroll or client billing, not accounts payable.

An AI step that dumps them all into one "invoice" pipeline will produce records that look right and are wrong for the job.

The SARS test for a valid tax invoice

For VAT-registered businesses, the tax invoice matters most. SARS is direct about why: "Without a proper tax invoice a business cannot deduct input tax on business expenses"1.

SARS sets the thresholds. A full tax invoice is required "when the price is more than R5 000". An abridged tax invoice is allowed at R5 000 or less. "If the consideration for the supply is R50 or less, a tax invoice is not required", though a till slip showing the VAT is still needed1. A tax invoice must be issued within 21 days of the supply1.

A full tax invoice must show, among other things1:

  • the words "Tax Invoice", "VAT Invoice" or "Invoice"
  • the supplier's name, address and VAT registration number
  • the recipient's name, address and, where the recipient is a vendor, its VAT number
  • a serial number and date of issue
  • an accurate description, and the quantity or volume supplied
  • the value of the supply, the tax charged and the total

Each of these can become an automatic check on the extracted data. If the supplier's VAT number is missing from an invoice over R5 000, the record isn't ready to post, however confident the AI was. Confirm the exact rules for your business with your tax adviser.

Three-way matching: the control you probably already have

The strongest check on a supplier invoice is comparing it with your own records. Dynamics 365 Finance describes the options2:

  • Two-way matching checks "the price information on the invoice to the price information on the purchase order".
  • Three-way matching also checks "the quantity information on the invoice to the quantity information on the product receipts", meaning what you actually received.

Matching works within tolerances, not exact equality. In Microsoft's example, with a 5% price tolerance on a purchase order at 1.00 a unit, "a price of 1.05 would be acceptable, but 1.10 is not"2. Anything outside tolerance becomes a matching discrepancy for someone to resolve. If your policy requires it, a person has to approve posting with discrepancies before the invoice can go through3.

Business Central, Microsoft's ERP for smaller businesses, has matching features too. It can match purchase invoice lines "to multiple purchase order lines and posted receipt lines"4. It has limits: it "doesn't work with orders that have prepayments" or item charges, among other exclusions4.

Three-way matching depends on the receipt being recorded. In Microsoft's own worked example, invoice lines get flagged because "the invoice line isn't matched to a product receipt"3.

In our experience, this is where AI projects in finance get stuck. The invoice arrives by email and gets read in seconds. The delivery note is on a clipboard in the warehouse and gets captured days later, or never. The matching then fails, and finance clears exceptions by hand.

So the most valuable use of document AI is often the unglamorous one: capturing delivery notes and GRNs promptly, so the receipt is already in the system when the invoice arrives. A photo of a signed delivery note, read by AI and checked against the open purchase order, closes the loop.

Putting it together

A practical pipeline for supplier documents looks like this:

  1. Classify each incoming document by type before extracting anything.
  2. Extract the fields that type needs.
  3. Validate against the rules for that type: SARS particulars for tax invoices, and PO and quantities for delivery notes.
  4. Match invoices to purchase orders and receipts within your tolerances.
  5. Route anything that fails a check to a named person, and let clean records flow into the ERP as drafts.

We explain why that last step should still involve a person at first in the case for human review before ERP writes.

What to do next

  1. List the document types that reach your finance team and what each one is meant to prove.
  2. Turn the SARS tax-invoice particulars into a checklist your extraction step must pass, and have your tax adviser confirm it.
  3. Check whether three-way matching is switched on in your ERP, and what tolerances are set.
  4. Measure how quickly delivery notes and GRNs get captured. If it's days, fix that before automating invoices.
  5. Start with one supplier group whose documents are consistent, and expand once the exception rate is low.

See it on your own data first.

We stand up a working proof of concept on our AWS account. Real sample data, no cost to you, before you commit to a build.