Score your pilot · Reproduce five worked invoice checks
Give the reader one job
A fictional UAE distributor wants its bookkeeping provider in India to prepare draft bills. A supplier sends an invoice with a purchase order number, item prices, a bank account, a signature and a personal mobile number. Only some of those details help prepare the draft. The finance manager keeps the complete original in the company’s accounting archive and gives the trial reader a smaller working copy.
The first test is whether the reader can extract the amounts, tie them back to the purchase order and flag a mismatch. Supplier identification, tax checks and payment approval stay with the finance team in this pilot.
Work through one AED 2,520 invoice
The example invoice shows 40 cartons at AED 60, a net amount of AED 2,400 and a printed tax amount of AED 120. The total should be AED 2,520. If the reader returns AED 2,250, the AED 270 difference sends the draft to a reviewer. This check reconciles the printed figures. The invoice’s tax treatment still needs its usual review.
| Field on the original | What the pilot receives | Business reason |
|---|---|---|
| Supplier name, invoice number and date | A client-assigned supplier code plus the invoice reference and date | The client resolves the supplier code from its own records and checks for a duplicate. |
| Purchase order, line items and totals | The order reference, item codes, quantities, prices, currency, printed tax and total | The reviewer can match the purchase and explain differences. |
| Contact name, mobile, signature and free-text notes | Omit them from the working copy unless a reviewer identifies a specific need | They add little to this match and can identify a person. |
| Bank details or a change-of-account instruction | Withhold the details and route any change to the established supplier-verification process | Preparing a draft bill gives the reader no reason to change a payee. |
Five worked invoice checks and how to reproduce them
On 26 November 2026, Datamsah ran four simple rules against five fictional invoice drafts. We wrote the printed amounts and simulated reader outputs ourselves. One draft qualified for human posting review. Four went to the exception queue. We tested the rules with supplied values. Measuring an AI reader’s accuracy would require separate trials on actual extraction results.
Run the cases in order, beginning with an empty list of passed invoices. For matching currencies, subtract printed net plus printed tax from the draft total, using exact decimal amounts. Hold any nonzero difference. For differing currencies, hold the draft and leave the difference blank. Also hold a draft if its supplier code and invoice reference match an earlier pass or its bank-change flag is yes. Only a pass adds its key to the list. A pass authorises human review only.
| Case | Input and simulated draft | Actual rule outcome |
|---|---|---|
| C1 · Matching amounts | S01 / INV-104. AED 2,400 net + AED 120 printed tax. Draft AED 2,520. | Pass for human review. Difference AED 0. |
| C2 · Transposed amount | S01 / INV-105. Same printed amounts. Draft AED 2,250. | Hold for total mismatch. Draft is AED 270 low. |
| C3 · Repeat invoice | Same supplier, reference and figures as C1. | Hold for duplicate even though the total matches. |
| C4 · Bank instruction | S02 / INV-104. AED 800 + AED 40. Draft AED 840. Bank-change flag is yes. | Hold for bank verification. A different supplier may use the same invoice reference. |
| C5 · Wrong currency | S03 / INV-501. NZD 100 + NZD 15. Draft AED 115. | Hold for currency mismatch. A cross-currency difference is undefined here. |
Reproduce the five results
Download the CSV and Python script into one folder. Run python3 check_invoices.py using Python 3. It prints each observed decision, reason and signed difference, then compares them with the three expected columns. It exits with an error on any mismatch. To inspect the same logic in a spreadsheet, keep the original row order and mark a duplicate only if its two-part key occurs on an earlier passing row.
Column definitions
case_id identifies the scenario. supplier_code and invoice_ref form the exact duplicate key. printed_currency, printed_net and printed_tax are the reference values from the fictional invoice. draft_currency and draft_total simulate extraction. bank_change_flag records an upstream reviewer’s yes/no finding. expected_decision, expected_reason and expected_difference are the comparison answers and have no role in computing the decision. Difference equals draft total minus printed net and printed tax, expressed in the common currency. Blank means the currencies differ.
What the exercise covers
The examples assume complete inputs, two decimal places, one net amount and one printed tax amount. The bank-change flag is supplied, so this exercise does not test whether a reader can detect a bank instruction. It also leaves tax validity, supplier identity, redaction quality and production duplicate history for separate checks.
To report an error, contact Datamsah through the enquiry page with the case ID, expected result and observed result. Use fictional figures in correspondence. Report a correction.
Find who can see the invoice before it reaches the ledger
Ask the provider to trace a single test invoice through upload, text extraction, model processing, exception review, logs and deletion. Record which legal entity can open each copy, from which country, for what purpose and for how long. If the full PDF reaches a hosted extraction tool before fields are removed, that tool has already received the original. Create the smaller copy inside the client’s approved environment and check its text layer as well as its appearance.
Keep the supplier-code lookup with the client. A code, invoice reference or item description may still point back to a sole trader. Treat the reduced copy as potentially identifiable when reviewing access and contracts.
The UAE and New Zealand clients have different questions
For a UAE client, identify the contracting establishment and the kind of personal data on the invoice. Article 2 of the federal Personal Data Protection Law has exclusions, including establishments in free zones with their own personal-data legislation and certain separately regulated health, banking and credit data. Where the federal law applies, review the transfer routes under Articles 22 and 23 before permitting access from India. Its definition of cross-border processing includes viewing data outside the UAE.
For a New Zealand client, ask what each overseas recipient can do with the information. Under section 11 of the Privacy Act, an agent handling information solely for the client leaves the client responsible. The Privacy Commissioner explains that this arrangement falls outside the overseas-disclosure rule in information privacy principle 12. If the supplier may reuse identifiable invoices to train its own general model, reassess the permitted disclosure and the applicable principle 12 safeguard before sharing.
Check the Indian delivery arrangement and any EU connection
India’s Digital Personal Data Protection Act 2023 and its 2025 rules are being introduced in stages. As of 26 November 2026, consent-manager registration has begun. The core duties, rights and section 17 exemptions are scheduled for 13 May 2027. Once effective, section 17(1)(d) provides a limited exemption when an India-based person processes data about individuals outside India under a contract with a person outside India. Sections 8(1) and 8(5) on accountability and reasonable safeguards are preserved for data fiduciaries. Check where the people are and which parties signed the contract.
If the invoice involves EU personal data, examine the actual connection under GDPR Article 3. Common triggers include processing in the context of an EU establishment, or a non-EU business offering goods or services to people in the EU or monitoring their behaviour there. For an in-scope controller using a processor, Article 28 requires binding processing terms, including instructions and controls over subprocessors. If a GDPR-covered exporter makes personal data available to a separate provider in India, establish the applicable Chapter V transfer mechanism and assess onward access. Remote access can count even when the server stays in Europe.
What the finance manager approves
Approve a first run on fictional invoices. Include a duplicate, a wrong total, a sole trader’s contact details embedded in a line description and a bank-change request. For each, record what reached the reader, what it returned and who handled the exception. Give the pilot account permission to create drafts only.
Move to a limited batch of real invoices when the team can reproduce those checks, account for every recipient, agree the applicable transfer terms and verify retention and deletion settings. A human approves the posting. Any proposal to change supplier bank details, reuse documents for training or send the full PDF to another provider reopens the decision.
Score your invoice-reader pilot
Use a fictional invoice to test six controls. Choose Verified when you have reviewed the evidence described. Choose Gap found when a test fails, or Unknown when you have not checked it yet.
Each verified control earns one point. Gaps and unknowns earn zero. This internal worksheet measures the evidence you have for this pilot. Certification and legal compliance require separate assessments. Your selections stay on this page.
Your result
Follow-up actions
Tell us how you’ll use this check (optional, one question). Your score and selections stay on this page.
Sources
- UAE Legislation — Federal Decree-Law No. 45 of 2021, Articles 1, 2, 22 and 23
- New Zealand Privacy Commissioner — Principle 12 decision tree for overseas disclosures
- Government of India — Digital Personal Data Protection Act 2023, sections 3, 8 and 17
- Government of India — G.S.R. 843(E), staged commencement of the Act
- Indian Ministry of Electronics and IT — November 2026 commencement update and May 2027 date
- EUR-Lex — General Data Protection Regulation, Articles 3 and 28 and Chapter V
- European Data Protection Board — Guidelines 05/2021 on international transfers
Test your invoice workflow
- Open the AI invoice reader acceptance test card. Run four fictional test cases and record whether your reader passes each check before approving a pilot.
- Get the reconciliation exception register. When a bank transaction differs from the amount in your books, record the difference, who will check it and the evidence that closes it.
