Learn
/
How to automate invoice coding and approvals in Foundations

How to automate invoice coding and approvals in Foundations

Vergo automates invoice coding and approvals in Foundation by inferring cost codes from your accounting history, routing invoices by project or amount, and syncing approved entries directly to Foundation's job cost ledger—no manual re-entry required.

July 29, 2026

Key takeaways

  • Invoice automation in Foundation requires mapping line items to job number, cost code, and cost type—Foundation's three-part job cost structure.
  • Validation against active jobs and budget limits before approval eliminates posting errors and rework downstream.
  • Approval routing should follow project ownership and dollar thresholds, mirroring your existing signature authority policy.
  • Construction-specific requirements include retention tracking at the line level, lien waiver dependencies, multi-job invoice splitting, and AIA G702/G703 pay application formats.
  • Effective automation queries Foundation's live job and cost code tables in real time to prevent mismatches between the invoice and your current project structure.
  • Vergo proposes cost codes by inference from your own Foundation accounting structure and history, eliminating rule libraries and coding new vendors on first sight.

What makes invoice automation different in construction

Generic AP automation tools are designed around simple two- or three-way PO matching for product-based businesses. Construction invoicing is fundamentally different: a single subcontractor pay application may span dozens of cost codes across multiple phases, retention is withheld at the line level, and the same vendor may bill across five active jobs in one invoice. Foundation's job cost structure adds another layer of complexity. Unlike a standard chart of accounts, job cost coding requires dynamic lookup against live project data—a cost code valid on one job may not exist on another. Automation that doesn't query Foundation's active job and cost code tables in real time will produce posting errors that require manual correction.

Construction-specific requirements for invoice automation

Retention tracking is the first critical element: invoices from subcontractors require retention withheld per contract terms, posted to a separate payable account in Foundation—not folded into the gross invoice amount. Lien waiver dependencies come next: many GCs require a conditional lien waiver before releasing payment, so the approval workflow must be able to hold payment pending lien waiver receipt. Multi-job invoices are common: material suppliers and equipment rental companies frequently bill across multiple jobs on one invoice, requiring the system to split and allocate lines to different job numbers without creating duplicate vendor records. Vergo supports line-level job cost allocation, splitting a single vendor invoice across multiple Foundation job numbers, cost codes, and cost types in one transaction. AIA pay applications present a formatting challenge: subcontractor billings often arrive as G702/G703 schedule-of-values formats, so automated extraction must handle these structured forms, not just unstructured PDFs.

A practical example of the automation workflow

A general contractor receives a subcontractor pay application for work across three cost codes on a single job. The automation platform extracts the G703 schedule of values and maps each line to the correct Foundation job number, cost code, and cost type using stored vendor rules. One line exceeds the subcontract committed cost, triggering a flag. The system routes the invoice to the project manager for approval based on the project assignment. Retention is calculated and withheld per the subcontract terms. Once the PM approves, the coded invoice posts directly to Foundation's AP module—vendor record, invoice header, and all job cost lines writing in a single transaction. The original invoice image attaches to the Foundation record for audit traceability. The entire process completes without the AP manager manually entering data or looking up cost codes.

Validating invoices before approval

Before an invoice reaches an approver's queue, run it against Foundation's active job list and committed cost records. Flag any line coded to a closed job, an inactive cost code, or an amount that would push a cost type over budget. Catching these exceptions pre-approval eliminates rework after posting. This validation step requires real-time integration with Foundation's project data—static lookup tables go stale as jobs close and new cost codes open. Reconciling open invoices against purchase orders and subcontracts weekly prevents double-billing from subcontractors and keeps WIP schedules accurate for bonding and lender reporting. Foundation tracks committed costs from POs and subcontracts, so this reconciliation becomes a key control point in the month-end close process.

How Vergo handles this

Vergo proposes cost codes by inference from your own Foundation accounting structure and history—no rule library to build, no keyword lists to maintain, and new vendors are coded on first sight. Every coding shows why it was chosen, so a reviewer confirms in seconds instead of re-coding by hand. Approval workflows are optional and fit how you already control spend: route by GL account, by amount, or by project—or skip approval flows entirely and let policy flags catch only what breaks a rule. Transactions are ready to code the moment they happen, and once they clear, they sync directly into Foundation Software. Card spend, employee reimbursements, and AP invoices run through one coding model—same coding, same review, one reconciliation—and payment stays on the rails you already use. Vergo integrates with every ERP and accounting software, including Foundation.

Related questions

Frequently Asked Questions

Does Foundation Software have built-in AP automation, or do you need a third-party tool?

Foundation includes AP entry, PO matching, and job cost posting natively, but it does not provide OCR invoice capture, automated approval routing, or AI-based coding suggestions. Most construction companies use a third-party AP automation platform to handle capture and routing, then write approved invoices back into Foundation for posting and reporting.

How do you handle retention in an automated AP workflow for Foundation?

Retention must be calculated at the line or invoice level based on the subcontract terms stored in Foundation. Automated workflows should split each invoice into a net payable amount and a retention payable, posting them to separate Foundation accounts. Releasing retention requires a separate payment run after the contract milestone or project closeout conditions are met.

What approval routing rules are most effective for construction invoice workflows?

The most effective rules combine dollar thresholds with project role. Invoices under a set amount (often $2,500–$5,000) route to the project manager; larger invoices add a division manager or CFO approval tier. Subcontract invoices that exceed the committed contract value should escalate automatically, regardless of dollar amount, to prevent unauthorized overruns.

How does automating AP in Foundation affect month-end close for job costing?

Automated AP reduces month-end close time by ensuring invoices are coded and posted continuously throughout the month rather than in a batch at close. Job cost reports in Foundation reflect current actuals, WIP schedules are more accurate, and the AP manager spends less time chasing approvals or correcting miscoded entries before the cutoff date.

Can Vergo handle multi-job invoices when automating Foundation AP?

Yes. Vergo supports line-level job cost allocation, so a single vendor invoice can be split across multiple Foundation job numbers, cost codes, and cost types in one transaction. Each line routes through the appropriate project approval chain and posts to Foundation as separate job cost entries, keeping project financials clean without manual splitting by the AP team.

What data does an AP automation platform need to integrate with Foundation Software?

An effective integration requires read access to Foundation's job master, cost code structure, vendor records, and committed cost data, plus write access to the AP invoice and job cost tables. Real-time querying of the job and cost code tables is essential — without it, the system cannot validate coding against active projects before routing for approval.