Suliu Finance AISuliu Finance
Open Source & Research · Inbound InvoicesAll Finance Workflows

Cross-verifying invoices, purchase orders, goods receipts, and contract pricing

Project: Ledgic – AI-Powered Prototype for Accounts Payable Invoice and Contract Verification

Accounts payable audits require more than just verifying invoice amounts; they must also be cross-checked against purchase orders, goods receipts, and contract pricing.

Project FilesBusiness Issues · Project Practices · Performance Scope
CASE BRIEF

Check these three factors first to determine if the item is relevant

Back to Input Invoice Business Route
01 · Business Bottlenecks

Auditing accounts payable requires verifying invoice details, purchase quantities, actual goods received, and contract pricing; any discrepancies must be documented as evidence for the approver.

02 · Project Practices

An open-source accounting tool extracts invoice fields and performs multi-party matching according to rules; anomalies are handled manually. The demo version records results through a mock ERP adapter.

03 · Financial Implications

Suitable for observing contract price verification, evidence queues, RAG, and MCP workflows; the demonstration data is synthetic data, and the ERP connector has not yet been connected to a real accounting system.

Step 01

Accounts payable risks mitigated by the project

Ledgic is an open-source prototype for accounts payable automation, designed to integrate vendor invoices, purchase orders, goods receipts, and contract pricing into a unified review workflow. The project demonstrates invoice extraction, matching, exception handling, and ledger recording.

Step 02

Define responsibilities for invoice data extraction and amount matching

Visual models extract invoice fields and line items, while simultaneously providing a confidence score and the specific location of the data within the original document. Deterministic logic is used to compare purchase orders, goods receipt records, and contract prices, calculating variances in both quantity and price. The model handles data extraction and interpretation, while financial assessments are executed according to predefined programmatic rules.

Step 03Project Methodology

How Exceptions Are Escalated for Manual Handling

In cases involving discrepancies in price or quantity, duplicate invoices, or missing materials, the system logs the relevant evidence and routes the item to an exception queue. Further processing requires review and authorization by an appropriately permitted user. The project also incorporates RAG-based contract querying and MCP (Model Context Protocol) tools.

Step 04

How to process a supplier invoice

  1. Process invoices to extract headers, amounts, and line items.
  2. Match purchase orders with goods receipt records
  3. Generating the basis for discrepancies by comparing against contract prices and tolerance thresholds
  4. Routing exceptions to a manual queue for review and evidence verification by approvers
  5. Approved invoices are processed via an ERP adapter, with a full audit trail of the decision-making process.
Step 05

Business documentation required for matching

Prepare invoices, purchase orders, goods receipt records, contract pricing, and vendor master data. Verify the company’s price tolerances, approval limits, and account roles, and ensure that any exceptions can be traced back to the original source documents.

Step 06

Linking Audit Results to Original Source Documents

The output includes structured invoice fields, matching results, price discrepancies, pending recommendations, and audit trails. The ERP adapter used in this example is a simulation; the demonstration results should not be treated as actual ledger postings.

Step 07

Publicly disclosed project demonstration scope

The "Northside Restaurant Group," along with its suppliers and associated data in the demonstration environment, consists entirely of synthetic (dummy) data. The transaction volumes mentioned reflect the configuration of a hypothetical company. The QuickBooks and NetSuite adapters currently function as "mocks" (simulated interfaces).

Step 08Pilot Recommendations

Assessing Risks in Multi-Party Matching

Use anonymized or synthetic data to simulate scenarios such as standard invoices, missing goods receipts, changes in contractual pricing, duplicate invoices, and multi-line discrepancies. Recalculate amounts for each item and cross-reference them against the original source documents.

  • Ensure that data field values ​​and their corresponding page coordinates can be traced back to the original invoices
  • Review amount tolerances and their alignment with procurement, goods receipt, and contracts.
  • Ensure that manual approval records and audit logs are complete.
Step 09

Limitations on demo data and connectors

The project README clarifies that the companies, vendors, and documents featured in the demonstration are entirely fictional or synthetic. The QuickBooks and NetSuite adapters are "mocks"—no real accounting systems are accessed, and no actual client performance outcomes are disclosed.

Systems integrated with the project

  • Supabase/PostgreSQL
  • RAG-based contract document retrieval
  • MCP service
  • QuickBooks/NetSuite mock adapter

Ongoing Verification of These Issues

Can it connect directly to the company’s QuickBooks or NetSuite instance?

The repository currently provides a "mock adapter." A connection to an actual accounting system has not yet been implemented in this demonstration.

Explore alternative approaches for incoming invoices

Return to Inbound Invoice Process Flow →

Corporate Case Studies

Motor vehicle invoices contain numerous fields—which data points can be auto-populated after capturing an image?

Business Pain Points

Motor vehicle sales invoices contain numerous fields, making manual, per-invoice data entry prone to omissions or errors.

Solution

Passenger car manufacturers integrate vehicle invoice recognition into their apps. After dealers upload photos, the system extracts fields for subsequent data entry.

Project Returns

Shorter Data Entry Time per Item3 Minutes

Even after a motor vehicle invoice is captured and processed via optical character recognition (OCR)—extracting fields such as the invoice number and amount—it must still be possible to reference the original document for verification; a high recognition rate cannot serve as a substitute for the formal auditing of invoices.

View Project Practices and Scope of Application →
Corporate Case Studies

How can invoices from various utility providers—each with a different layout—be entered in bulk?

Business Pain Points

Utility bills originate from various providers, each with different layouts, field placements, and billing line items. Finance teams must manually locate the amounts and billing periods for each document before entering them into the accounts payable process.

Solution

A company's case integrates invoice receipt, field recognition, and rule validation; records with formats or fields that do not meet expectations are then processed manually.

Project Returns

Overall Accuracy96 %
Peak Accuracy99 %

When dealing with a high volume of bills in various formats, you can first verify key extracted fields and validation rules, then identify whether any anomalies can be traced back to specific individual bills.

View Project Practices and Scope of Application →
Corporate Case Studies

For a backlog of supplier invoices, decouple the data entry process from the verification process.

Business Pain Points

The coexistence of purchase-order-based and non-PO invoices—compounded by manual data entry, verification, and approval tracking across different regions—creates significant backlogs.

Solution

A company converts PDFs into structured electronic invoices, checks for discrepancies and data anomalies in purchase orders, and manually corrects them for subsequent improvements.

Project Returns

Invoice Processing Cycle1–2 days
Reduction in Processing Cycle Time85 %

Directing human attention toward order discrepancies and error identification

View Project Practices and Scope of Application →

What other process stages are affected by this work?

If a project reaches a stage requiring the handover of documentation or the reconciliation of results, you can continue to track the process through the relevant business workflows.

Process integration reference: Linking documentation to data organization.

Organize and structure documents before reconciliation

Invoice data—whether from emails, scanned documents, or internal systems—must first be standardized into uniform fields before it can be verified and recorded in the ledger.

Reference for supporting steps; does not imply that these specific functions have been deployed in any given case.

AI extracts invoice numbers, amounts, tax figures, and line-item details, standardizing the format and flagging duplicates; finance teams then verify these against the physical documents and underlying business transactions.

Continue exploring this business process →
Process integration reference: Handling expense reimbursement approvals.

Integration of Invoice Data into Expense/Reimbursement Review

Ensure that reimbursement amounts, expense details, and attachments can be traced back to the invoices submitted by employees.

Reference for supporting steps; does not imply that these specific functions have been deployed in any given case.

AI can extract data from invoice fields, flag duplicate invoices or missing attachments, and highlight relevant expense policy guidelines for the reviewer to consider.

Continue exploring this business process →
Process integration reference: Linking contracts to payment approvals.

Cross-verify purchase invoices against payment requests

Before making a payment, invoices must be cross-referenced with contracts or purchase orders, as well as delivery and acceptance records.

Reference for supporting steps; does not imply that these specific functions have been deployed in any given case.

AI can compare vendors, amounts, categories, and payment terms, tracing any discrepancies back to the original source documents.

Continue exploring this business process →