UAE & India Serving clients globally

Accounting & Bookkeeping

Three invoices, two wrong amounts and a perfectly balanced ledger

A reproducible acceptance test for finance teams buying AI invoice processing

The decision

A supplier demonstrates an invoice import. Three files go in, three drafts come out, and the total on the screen agrees with the total on the cover sheet. The demonstration takes less than a minute. Someone asks whether the buyer is comfortable letting the system post the next batch automatically. Before answering, give the supplier three different invoices and ask it to show how it knows that each draft belongs to the right obligation. That second question is where a demonstration becomes an acceptance test.

This article describes a fictional exercise for an accounting practice or SME finance team assessing an AI invoice reader and an outsourced bookkeeping provider. The amounts are expressed in New Zealand dollars so the arithmetic can be reproduced in the accompanying worksheet. A UAE buyer can use a single fictional AED batch under the same assumptions. Do not convert between currencies during this exercise. It is designed to isolate three questions: whether every expected invoice occurs once, whether the right amount follows the right reference, and whether the buyer retains authority to hold a questionable batch.

Build an answer key before the demonstration

Prepare three synthetic invoices for one fictional supplier. Label them INV-A, INV-B and INV-C. Give them totals of 450, 300 and 300 respectively. Independently add the amounts and record an expected batch total of 1,050. In a private copy of the worksheet, preserve the expected references and amounts before showing the documents to the provider. If the same extraction process creates both the expected result and the result being tested, agreement between the two offers little evidence that the original document was interpreted correctly.

Use a single supplier, a single currency and a fixed number of rows deliberately. A small case makes the failure legible to a finance manager who has never written software. It also makes it possible to inspect each result by eye when a formula behaves unexpectedly. A larger pilot can follow. Introducing discounts, multiple tax rates, credit notes, split shipments and foreign exchange at the beginning would make a failed test harder to interpret and a successful test harder to describe accurately.

Before the supplier starts, agree the point at which the test ends. For an early pilot that may be creation of three drafts in a test ledger. Posting a liability, approving an invoice for payment and transmitting a payment instruction are further actions with their own permissions. Pause at the selected boundary. If the supplier cannot demonstrate the process without posting live entries, that limitation is itself relevant to the purchasing decision. It changes the cost and reversibility of obtaining evidence.

Trial one: the retry that leaves the total intact

In the first fictional export, the references are INV-A, INV-B and INV-B. Their amounts are 450, 300 and 300. The row count is three. The total is 1,050. A reconciliation that compares only the count and aggregate amount passes both checks. Nevertheless, the third invoice is missing and the second is represented twice. The accounting team could pay one obligation twice and fail to settle another if subsequent controls accepted both drafts. These are possible consequences in the example, not events that have occurred.

For each expected reference, count the matching export rows. INV-A occurs once, INV-B occurs twice, and INV-C occurs zero times. Record the three results separately. The duplicate and omission describe different problems. Removing one INV-B does not reintroduce INV-C; adding INV-C first does not remove the duplicate. A correction that attends only to the first visible error can leave the batch in a different but equally unacceptable state. The acceptance evidence should show the state of the whole batch after remediation.

The supplier may say that its integration is designed to avoid duplicate processing on retry. That is a testable statement. Ask it to explain how its integration recognises a repeat of the same logical operation. If Xero is involved, its developer guidance describes the role of an idempotency key for relevant requests. The existence of a documented feature does not establish that a particular integration uses it appropriately, or that a person did not upload a second file through a different route. Ask for evidence from the authorised test.

A finance manager need not inspect source code to make progress. Ask for a record linking the first attempt and the retry to the resulting draft identifiers. Which part of the workflow knew they belonged together? Which action did the operator take when the first attempt timed out? Did the provider check the ledger before instructing the operator to try again? Write the answers in business terms. The objective is to decide who owns recovery when an acknowledgement goes missing while some of the work may already have succeeded.

Trial two: every reference occurs once

Restore the expected set of references and introduce a subtler problem. The export now contains INV-C for 300, INV-A for 420 and INV-B for 330. All three references occur exactly once. The total is again 1,050. Sorting these records by the order in which they arrived would put them alongside the wrong originals. Instead, pair each exported amount with its expected invoice by reference. For INV-A, 420 minus 450 is minus 30. For INV-B, 330 minus 300 is plus 30. For INV-C the difference is zero.

The signed differences sum to zero. Their absolute values sum to 60. Both calculations have a use, provided the reviewer identifies what each measures. The first explains why the batch appeared balanced. The second measures the total size of the line-level differences in this sample. It is not a forecast loss of 60. The buyer has found an understatement and an overstatement before either draft was posted. The appropriate financial consequence depends on what later checks would have caught and what action would otherwise have followed.

The worksheet gives each mismatched reference a hold decision. In a private copy, correct INV-A to 450 and INV-B to 300 without changing the export order. A functioning reference-based comparison should now clear all three amounts. Retest the original failure by changing one of them back. This last step matters because a reviewer can accidentally replace a formula with a constant while attempting a correction. The process should demonstrate that the check responds appropriately both when the evidence improves and when the error returns.

The numbers have been chosen to make a point about governance. If a dashboard reports only total accuracy by value, offsetting errors can disappear. If it reports only the proportion of references found, the second export looks perfect. Define the failure that matters before choosing the headline metric. For this purchase, the buyer wants each draft to preserve the identity and amount of its source and to stop when that cannot be shown. The smallest useful dashboard should therefore make individual exceptions visible to somebody authorised to act.

Decide what counts as the same invoice

The test uses unique references because the fictional supplier has been constructed that way. In a live workload, different suppliers can use the same invoice number. A supplier might also reuse a sequence after a financial year changes. A credit note may cite the reference of the underlying invoice. Ask the practice which fields establish identity for its own workflow. Depending on the data, the match might require the supplier’s internal identifier, document type, invoice reference and currency. Any additional matching rule creates a new assumption to test.

Even a sensible matching key can fail if the input is altered during normalisation. An export may remove a leading zero or treat a slash and a hyphen as equivalent. Two documents that were distinct in the source may then collide. Conversely, harmless differences in spacing may cause one invoice to appear as two different records. Invite the provider to show two examples of how it handles such ambiguity. One should be a genuine duplicate. The other should consist of two different obligations whose references look deceptively similar.

Give ambiguous cases an explicit review state. If the key is absent, the system should not silently substitute row position. If two candidates fit, it should not assign the amount to whichever record comes first. In a controlled pilot the reviewer can record the reason for the ambiguity and how a person resolved it. That resolution may suggest a better supplier identifier, a clearer intake rule or a justified exception. Keeping the original data and the decision separate allows the team to learn without rewriting the history of the test.

Put a clock on the handoff

The buyer also needs to know whether the recovery procedure fits the working day. Suppose an India-based reviewer detects a mismatch at 14:10 Dubai time and a UAE finance manager must approve the payment batch by 15:00. Fifty minutes remain. In a timed fictional rehearsal the reviewer spends twelve minutes locating the source records, eight minutes preparing a corrected export and fifteen minutes obtaining a second review. That leaves fifteen minutes for any further approval and upload. Replace these assumptions with measured times before relying on the procedure.

Now change one condition. The independent reviewer is occupied for twenty minutes before starting. The same sequence takes fifty-five minutes and misses the cutoff by five. This does not mean the supplier is generally unreliable. It shows that this particular fallback depends on a person who may be unavailable at a predictable hour. Possible responses include an earlier internal cutoff, a trained alternate or the ability to hold the disputed items and process the rest. The buyer can compare those options against actual service obligations and cost.

For a New Zealand practice using the same overseas provider, perform the exercise against its own processing deadline and name the local decision-maker. Do not import the UAE clock into a New Zealand payroll or tax timetable. Record the full date and time zone wherever a handoff crosses midnight. A system that says a ticket is due “tomorrow morning” can lead two teams to honour different deadlines in good faith. The evidence the buyer needs is an acknowledged task with an unambiguous cutoff and a person empowered to hold it.

Turn the test into terms the supplier can operate

A useful acceptance record answers four short questions in complete sentences. What scope did the buyer test? What outcome was expected? What actually happened? What permission follows? In the fictional pilot, the buyer might permit the supplier to prepare drafts for one account and currency while requiring human approval before posting. It can ask the supplier to fix the retry process and return with a traceable retest. This gives the buyer a route to proceed with a valuable service without granting a permission that the evidence does not yet support.

Set a specific condition for expanding that scope. For example, the buyer might require an agreed set of partial failures to be replayed successfully, followed by reconciliation of every expected reference, currency and amount in a larger, independently prepared sample. The supplier should know how failures will be recorded and who decides whether a fix addresses the original defect. Define what happens to transactions created before the fix. Otherwise a clean demonstration using new documents may disguise unresolved duplicates left from an earlier processing run.

Finally, decide who owns the evidence when the service ends. The incoming team needs to be able to reconcile the last accepted batch, identify unresolved drafts and see which items were withheld. A batch log locked inside the outgoing supplier’s dashboard can turn a manageable exception into a handover dispute. Ask for a fictional export now, while everybody expects the relationship to continue. Let a colleague who missed the demonstration reconstruct the three invoices from the export. Their questions are a practical guide to which fields the handover record still lacks.

What three invoices can establish

A small test can reveal a defect and make its consequence understandable. It cannot establish the long-run error rate of a production model, the reliability of every subcontractor or the frequency of duplicate payments across a business. Record the denominator as three deliberately chosen examples, and say why those examples were chosen. If a provider reports a high aggregate accuracy figure, request the underlying definition and population before trying to compare it with your own result. An adversarially chosen accounting exception and a representative production sample answer different questions.

The most useful outcome of this exercise is a sentence the finance manager can defend at the next review: “We allow this supplier to create drafts because we can identify and hold a failed batch, and our team retains the posting decision.” If the evidence does not yet support that sentence, write down the missing observation. It might be a timed recovery, a corrected role assignment or an export that the buyer can reconcile unaided. That specific gap is a better basis for the next supplier meeting than another request for a general assurance presentation.

Run the examples in a private copy of the public workbook. To discuss reviewing one supplier with Datamsah, describe where an import can be retried and who authorises posting. No contracts or client invoices are needed to start that conversation.

Sources

Start a conversation

Define the next step
for your business.

Tell us the outcome you need. We will help define a practical scope.

Discuss accounting support