Analyze with AI
Get AI-powered insights from this Mad Devs article:
Your ERP holds an order for 100 units, an invoice for all 100 and a posted receipt for 60. Accounts Payable (AP) needs a decision before payment: what has the warehouse confirmed, what remains unmatched and who can change the invoice’s status?
This is a practical use of three-way matching. B2BE’s Rexel UK case study describes its implementation for a UK customer, although it does not establish that customer’s partial-receipt rules. Those rules need Finance’s approval in your process. Using one hypothetical invoice, this guide shows how to establish the initial hold, recheck after another receipt and restore the hold following a correction before payment.
Key takeaways
- Assign a source to each comparison: the order supplies the price; posted receipts establish the accepted quantity.
- Apply Finance’s agreed invoice-hold policy. The value of received goods does not automatically become an amount available for payment.
- Recheck against posted receipts and reversals, preserving evidence of each changed result. A repeated event must not increase the accepted quantity.
- Send a successfully matched invoice into normal approval. Clearing a matching discrepancy does not itself approve or execute payment.
Match the invoice line to the order and receipts
Three-way invoice matching compares an invoice with its purchase order and goods receipt records. The useful output here is a decision about a specific invoice line, backed by identifiable inputs.
Establish the source and key for each record
This hypothetical exercise uses zero tolerances, a whole-invoice hold and no partial payment. Use these records throughout:
- Purchase order PO-111, line 1: 100 units at £10 each.
- Invoice INV-111, line 1: 100 units at £10, totalling £1,000 excluding VAT.
- Goods receipt R-1, line 1: 60 posted units against PO-111/1.
All three use the same unit of measure. There are no other invoices against this order line. Link the invoice and receipt through PO-111/1, retaining R-1/1 as the receipt reference. An unlinked receipt needs investigation before it can support this line’s calculation.
The inputs are valid, structured ERP records. Pavel Zverev’s Mad Devs article on Invoice capture and ERP posting covers the earlier capture and handover stage.
Separate price, quantity and availability for payment
Microsoft’s Dynamics 365 Finance documentation describes three-way matching using order prices and product receipt quantities. This comparison model informs the exercise; its proposed workflow is not a claim about every ERP’s configuration.
Here, tolerances are zero and prices match. Quantity differs by 100 − 60 = 40 units, worth 40 × £10 = £400. That diagnostic amount explains the exception. Finance’s hold policy determines its effect on payment availability.
Decide what to hold when a delivery is partial
Apply the policy to the first partial receipt
For this exercise, Finance’s policy holds the entire invoice whenever any line exceeds its matching tolerances. Partial payment is not permitted. These are scenario assumptions, not rules attributed to Rexel UK or defaults promised by Dynamics 365 Finance.
AP checks the posted R-1/1 against PO-111/1 and INV-111/1. The accepted quantity is 60; the invoice requests 100. With zero quantity tolerance, the 40-unit discrepancy fails matching. Apply a matching hold to the £1,000 invoice. At this step, £0 is available for payment.
The received portion has a value of 60 × £10 = £600, but that figure does not authorise a £600 payment. Allowing partial payment would require a different, explicitly approved policy and workflow.
For implementation, agree how the hold appears to AP and how the payment process respects it. Verify the saved invoice state as well as the calculation: a correct £400 discrepancy with an invoice still eligible for payment fails this exercise.
Make each outcome observable
Run the same INV-111 through the following events. The reversal is an alternative branch after R-2 and before payment formation. Each row gives AP a status or discrepancy it can inspect; the repeated event also needs a recorded recheck showing unchanged inputs.
| Event | Net received | Difference from invoice | Decision for INV-111 | Available for payment at this step |
|---|---|---|---|---|
| R-1 posted for 60 | 60 | 40 / £400 | Hold | £0 |
| R-1 event repeated | 60 | 40 / £400 | Keep hold | £0 |
| R-2 posted for 40 | 100 | 0 / £0 | Clear matching hold; send for normal approval | £0 pending approval |
| Alternative: reversal of 10 after R-2, before payment | 90 | 10 / £100 | Restore hold; notify AP | £0 |
Clear the matching hold only after the recheck confirms matching prices and 100 net received units within the exercise’s tolerances. Record the successful result and handover into normal approval. Payment remains a separate decision.
Restore the hold if the posted reversal reduces that quantity to 90 before payment. The new £100 discrepancy and held status must be visible to AP, even though the earlier check succeeded. An old successful result cannot support the corrected invoice state.
Recheck after a new receipt or a correction
Rebuild the accepted quantity from posted records
For this design, calculate accepted quantity from posted receipts for PO-111/1, less posted reversals. An expected delivery or advance notification adds nothing: it does not establish a posted warehouse receipt. An unposted record must wait for posting; a receipt without the order-line link cannot safely be assigned to this comparison.
An exact repeat of R-1, with the same reference and content, must not create another receipt. Rebuild from the existing record, retain 60 units and log the recheck with its unchanged result. If the same ID arrives with different data, route it for manual investigation instead of silently adding or replacing quantity.
R-2 adds 40, bringing the net quantity to 100. A subsequent posted reversal of 10 produces 60 + 40 − 10 = 90. Give each changed matching result a reference to the event that caused it, and keep the previous status in the journal. This event-linked history is the design illustrated here, rather than a universal ERP feature.
Escalate unresolved discrepancies
If the remaining goods do not arrive, AP keeps the hold, asks Receiving to confirm physical receipt and returns the discrepancy to the invoice owner. Use the same route when a receipt cannot be linked to PO-111/1; resolve the association before counting it.
Finance sets escalation deadlines, real tolerances and the conditions for any exceptional decision. Record that decision against the exception rather than inventing a deadline for this example. An invoice already included in a payment is outside this scenario: stopping or recovering payment requires Finance’s separate process.
Give AP the evidence it needs to resolve an exception
After R-1, give the operator a usable exception record:
PO: PO-111/1. Invoice: INV-111/1. Receipt: R-1/1. Accepted: 60 of 100 invoiced units. Difference: 40 units / £400. Reason: invoice quantity exceeds net posted receipt quantity; zero tolerance. Invoice status: held. Available for payment: £0. Owner: AP. Receiving: confirm the receipt facts. Evidence: R-1 posting reference and matching-check reference.
After R-2, append its event reference, the new 100-unit calculation, the cleared matching hold, the previous held status and the handover into normal approval. Keep the earlier entry available so AP can trace why the decision changed.
Agree pilot acceptance evidence with Finance, Receiving and the ERP owner: identical inputs produce an identical result; a new receipt changes the invoice once; and a reversal restores the hold before payment. Compare these checks with existing ERP settings first. Any missing event handling or exception history then becomes a concrete requirement for the matching module or journal.
Conclusion
Choose one real invoice line and collect its order, invoice and two receipt records. In a test environment, run the partial receipt, repeat it, add the second receipt and test a reversal before payment. Compare the saved status and journal with AP’s approved policy. Use the differences to decide which ERP settings suffice and which matching or exception-handling changes your team needs to implement.
Accounts Payable Integration 🤘 Make partial receipts safe to reconcile We can map your ERP’s order, receipt and invoice records, implement the hold and recheck rules, and test them against the exceptions your AP team handles. Discuss your ERP workflow → |








