Skip to content
← Back to blog

Test invoice line extraction for matching

An OCR result can read every character and still place a quantity in the unit-price field or attach a row to the wrong product. Test recognition, structured extraction and matching separately. Your team needs the right amount tied to the right line before it can compare that line with the order or delivery.

Make the reference sample usable by a second reviewer

Select recent cleared and exception invoices from the suppliers and intake channels you actually use. Include scans and digital PDFs, dense multi-page tables, unusual units, mixed discounts and at least one known PO or receipt discrepancy. Mask any fields you are not authorized to share without changing the content needed to judge the case.

Have a reviewer mark the expected source page, row, supplier, item reference, unit, quantity, unit price, currency, discount and line total. Keep raw values and normalized values separate. For example, tag ‘0126’ as an item reference and retain its leading zero. Mark whether a blank is expected or whether a required field is missing. Lock the sample before measuring.

Score the field and the purchasing decision

Use three small cases to check that reviewers can explain the result.

If some rows or columns are hidden, focus the table and use the arrow keys, or scroll within it.

CaseSource and extracted lineMatch decision
Correct source captureSource and extraction say 5 units at $12, extended to $60Check the correct five against the authorized order and available receipt
Wrong field valueSource unit price $12. Extracted $120. Printed total $60.Confirm the image and correct extraction before investigating a price difference
Correct capture with an exceptionSource and extraction both say 8 units, but the relevant receipt supports 6Investigate the 2-unit receiving gap under the purchasing terms

If 194 of 200 expected field values are correct after applying the agreed normalization, the observed field result is 97% in that sample. Report missing fields and extra extracted fields separately, along with the numerator and denominator for high-impact fields. Also count how many cases reach the right match or exception decision. A document with nine easy fields and one wrong unit price can be unacceptable even if most fields read correctly.

Measure correction time from the moment the reviewer opens the case to the saved, verified correction. Count resolved and unresolved cases separately and state whether the figure includes waiting for a better supplier copy. Compare the same case mix across pilot runs. Set an acceptance rule for currency, billed quantity and unit price before seeing the results. Require manual verification on fields that your risk policy makes essential even if average accuracy is high.

Microsoft’s Document Intelligence guidance distinguishes model confidence from measured accuracy. Use observed accuracy against your sample and track reviewer effort separately.

Run the pilot in Calitem

  1. Set up the inputs. Bring the sample invoices, matching purchase orders and receiving records. Agree how the documents reach Calitem and which field values count as correct or equivalent.
  2. Compare the extracted lines with the marked source. Send questionable values for human review. For the $120 extraction, save the supported $12 before comparing against the order. For the eight-unit bill, keep the correct extraction and have receiving resolve why only six units have support. This test policy holds the entire invoice. Fail the case if the ERP contains an approved payable for it while two units remain unsupported.
  3. Review the separate outcomes. Record per-field errors, time spent correcting evidence and whether the comparison produced the expected decision. Use configured approvals and verify the accepted coding and source references in the ERP for cases cleared by your team.

For extracting a header and line table into a workbook, see invoice OCR to Excel. The pilot measures whether your AP team can use those fields reliably to make decisions.

Get started with Calitem today.

Reduce supplier spend by improving how you manage purchases.

Book a demo

Want to learn more?

Book a demo with our team.

Calitem uses this information to contact you about your request. See our Privacy policy.