Invoices · Duplicates · Matching

The Same Invoice, Twice, Slightly Different.

Post #19 was about a payment that can't be taken back. This one is about paying the same thing twice, when the second invoice differs in number, date and amount and an exact match sees nothing.

Boris Dračka · November 2026 · 6 min read
Post #20 of 50 — The CFO & AI Series

The examples and architectures in this series are my personal educational, non-commercial experiments; they are not an offer of IT or consulting services.

An exact match is a very strict definition of "the same". Many duplicates don't meet it. Post #19 was about a payment that can't easily be taken back. This one is about paying for the same thing twice.

The case below is a composite. The company, the supplier, the invoice numbers, the amounts and the dates are invented and illustrative only. They don't describe a real company, supplier or incident.

One delivery, two invoices

2
Invoices for one delivery in the illustration
0
Exact matches on invoice number
1
Second payment that went out without a warning

A supplier invoices a delivery in early October. Two weeks later, after a reminder, a second invoice arrives through another channel. It has a new number, a later date and a slightly higher amount, because freight was added. Nobody meant any harm, and the second invoice is paid as well.

FieldInvoice AInvoice BExact match
SupplierSupplier SSupplier Syes
Invoice number04120431no
DateOct 3Oct 17no
Amount1,2001,212no
OrderPO-118PO-118yes

The only fields that match are the supplier and the order, which is what a person would look at first, and what an exact match on the invoice number ignores.

invoice_pair — illustrative composite
—
Invoices received
—
Exact matches
—
Flagged as similar

Illustrative composite from Post #20. The supplier, invoice numbers, amounts and dates are made-up and do not describe a specific company or incident.

What identifies the document, and what identifies the thing

An exact match compares what identifies the document. A second copy changes exactly that, and leaves the rest alone.

Often changes in a second copyUsually stays the same
Invoice numberSupplier
Invoice dateOrder or delivery
Amount (freight, rounding, currency)Items and quantities
The way it arrived (e-mail, portal, post)What was delivered

Second copies mostly come from ordinary things: a supplier re-sends after a reminder, one copy arrives by e-mail and another through a portal, an order is invoiced in parts, a corrected invoice replaces one that was never cancelled. In most cases nobody meant anything by it, and nothing in this post suggests otherwise.

Similar is not always a duplicate

Rent, a subscription or a monthly service produces a series of invoices with the same supplier and almost the same amount, and every one of them is legitimate. A check that blocks everything similar would stop real payments. So it can't decide. It can show why two invoices look alike and let a person say which case it is.

What it looks likeWhat's actually true
The system checks for duplicates It checks for an exact match, which isn't the same as checking for similarity
The numbers are different, so the invoices are different Different numbers, same delivery
A similar invoice is a duplicate Not always. Rent is the same every month
A duplicate that changes its number Is just a very confident new invoice

The same pattern as the earlier posts

Post #19 argued that the check has to happen before the payment, because afterwards the money is hard to get back. That applies here as well. Post #18 applies again: a correct invoice is not yet a confirmed one, and a second correct invoice for the same delivery is exactly the one nobody is asked about. Post #16 asked "compared with what?". Here the answer is another invoice, not the supplier's history. And Post #8 applies too: a warning on every similar invoice teaches people to stop reading it, so the threshold and the reason attached are part of the design.

I'm not a lawyer or a bank. What happens after a second payment has gone out, including recovery and liability, is a question for your bank and your lawyer, not for this post.

What a duplicate check has to contain

ElementWhy it matters
Similarity on several fields (supplier, order or delivery, amount within a tolerance, a window of days), not only the numberAn exact match finds only the easy ones
The same basis for comparison every time (amounts on the same items)Otherwise two invoices can't be compared
A warning with the reason: which fields match and which don'tA warning without a reason can't be judged
The check runs before the payment, not after itAfterwards the money is harder to get back
A threshold, and an exception for regular invoicesOtherwise it is noise
A person decides, and the check blocks and cancels nothing by itselfThe responsibility stays with someone who can be asked

Whether two invoices are the same is a question of similarity, not of a match.

A test you can run this week

Take the invoices of the last three months. For each supplier, find two invoices with a similar amount within 30 days of each other. For every pair, write down whether it is a duplicate or a legitimate repeat, and how you found out. The number of pairs where you can't tell is your figure.

There is no script behind this one either. It is a list, a rule about what counts as similar and a name next to every pair, and all three are worth having before any tool is involved.

Follow the series

Post #21 looks at the invoice that is correct every month: the same supplier, a price that creeps up a few percent at a time, and a service nobody uses any more.

If the same invoice came in twice this month with a different number, what would catch it first?

Subscribe free
No spam. One post per week. Unsubscribe any time.