Skip to main content

AP Invoices

Agave Sync allows you to sync Foundation AP Invoices and Procore Subcontractor Invoices.

note

Agave Sync exports AP Invoices to Foundation in an Unposted status. To see the AP Invoice in Foundation, go to Foundation's Accounts Payable Enter Invoices form, then press Modify and Modify Unposted Invoices.

Visual Mapping

Foundation and Procore Visual Mapping

Foundation and Procore Visual Mapping

Foundation and Procore Visual Mapping

Video Tutorial

Enabling AP Invoices Sync to Foundation

Installation

Exporting AP Invoices to Foundation requires the a combination of Foundation's FSI Importer, ODBC access, and the Agave Connector.

Step 1: Download the FSI Importer

  1. Log in to the Foundation Client Portal.

  2. If you are a Foundation Cloud (Hosted) Customer, go to Resources-->Downloads. If you are a Foundation On-premise Customer, go to Resources-->Software Releases.

  3. Select the download icon for the FSI Importer.

  4. Once the file has downloaded, go to your Downloads folder and open the .exe file. This will start the installation process for the FSI Importer.

  5. Finish the installation process.

Step 2: Set up ODBC access for the FSI Importer

To use the FSI Importer with Agave Sync, you will need to set up Microsoft Open Database Connectivity (ODBC) access to your Foundation instance. Complete Foundation's guide to setting up this access.

Step 3: Set up the Agave Connector

  1. Ask your Agave Account Manager for a link to the Agave Connector. Then download and install it.

  2. Open the Agave Connector and press Add Account.

Foundation AP Invoices

  1. Select Foundation as your Source System.

Foundation AP Invoices

  1. Input details for your Foundation user you use in Agave Sync, and then press Test and Save. Note, these are the same credentials you used for connecting Foundation to Agave Sync.

Foundation AP Invoices

  1. Notify your Agave Account Manager that you have completed the foregoing step and ask for an Account ID and Token. Input these details in the next screen and then press Test and Save:

Foundation AP Invoices

  1. Notify your Agave Account Manager that you have completed the foregoing step. They will then be able to confirm that you can export AP Invoices to Foundation.

FAQs and Common Errors

How does Agave know which AP Invoice FSI Importer defaults to use?

Agave Sync references two locations to determine the FSI Importer defaults:

  1. For the Expense Ledger Account, Agave Sync uses the same Ledger Accounts references in Subcontracts and Purchase Orders (under System --> Controls --> P/S).
  2. For other defaults, Agave Sync references the AP Control file in Foundation (under System --> Controls --> A/P). These defaults include:
DefaultControl FileNotes
A/P G/L AccountControl A/P File-
Cash G/L AccountControl A/P File-
Credit Card G/L AccountControl A/P File-
Discount G/L AccountControl A/P File-
Expense G/L AccountNone - see NotesDefaults to the Expense Ledger Account from the Purchase Order or Subcontract Line Item
Division 1Control A/P File-
Division 2Control A/P File-
Division 3Control A/P File-
Division 4Control A/P File-
EFT G/L AccountControl A/P File-
Is Phase Enabled?Control J/C File-
Lien Waiver FlagControl A/P File-
Payment TypeNone - see NotesAlways set to "Regular"
Retainage G/L AccountControl A/P File-
TermsControl A/P File-

Do I need to have the FSI Importer installed for AP Invoice syncs to work?

Yes. We leverage the same technology that Foundation uses for the FSI Importer as part of this sync.

Do I need the Agave Connector to be opened/minimized for AP Invoice syncs to work?

Yes - we recommend keeping it open and minimized.

Can I sync AP Invoices against Subcontract or Purchase Order Change Orders?

Yes insofar as you have the following setting in Controls-->P/S-->Invoicing enabled:

Foundation AP Invoices

Is releasing retention supported?

No, releasing retention is not supported in sync for Foundation.

Error: No Ledger Account ID found for provided Foundation Cost Type.

Foundation requires a Ledger Account ID for AP Invoice line items. Since Procore does not have a Ledger Account field in Subcontractor Invoices, Agave Sync uses the value from the A/P Expense G/L field for the Cost Type (Cost Class). If this field is not populated, Agave Sync will generate an error.

Foundation and Procore Visual Mapping

What are Billing Periods and how do I add them?

You may receive an error like the following: [Procore Error] The project must have an open billing period (or admin can specify a period_id) to create an invoice when attempting to import AP or AR Invoices to Procore.

To fix this error, you will need to create a "Billing Period" in the Project. For context, a Billing Period defines the billing cycle used by a project's team and invoice contacts on Procore's invoices and progress billings. In addition to defining the frequency of the billing cycle (for example, monthly or weekly), a billing period also defines the billing cycle's start/end date and the due date for the invoice or progress billing.

To learn more about adding Billing Periods to Procore, see Procore's guides on creating manual billing periods and automatic billing periods.

Note, we recommend creating these Billing Periods in your Project Template(s), so you do not need to add Billing Periods for each Project going forward.

Error: Missing Contract

This error occurs when the Subcontract or Purchase Order associated with the AP Invoice has not been synced to Procore.

To resolve this error, sync the Subcontract or Purchase Order associated with this AP Invoice.

note

If you do not plan to sync the AP Invoice or related Subcontract or Purchase Order, you can Ignore the AP Invoice record.

How are the subtotal and retention amounts calculated for each Line Item?

Subtotal Amount

Agave Sync calculates the subtotal for a Procore Subcontractor Invoice Line Item using this formula:

subtotal = total_completed_and_stored_to_date - total_completed_and_stored_to_date_from_previous

What this means:

  • total_completed_and_stored_to_date is the cumulative value of work and materials completed and stored up to the current period.
  • total_completed_and_stored_to_date_from_previous is the cumulative value from the previous billing period.

The subtotal is the new work and materials completed/stored during the current period only (the difference between the current total and the previous total).

Retention Amount

Agave Sync calculates the retention amount for a Procore Subcontractor Invoice Line Item as:

retention = work_completed_retainage_retained_this_period + materials_stored_retainage_currently_retained + materials_retainage_retained_moved - materials_stored_retainage_previous_progress

What this means:

  • work_completed_retainage_retained_this_period: the amount of retainage held from work completed in this billing period.
  • materials_stored_retainage_currently_retained: retainage held on materials currently stored (this period).
  • materials_retainage_retained_moved: retainage moved (for example, when stored materials are installed and the retainage category shifts).
  • materials_stored_retainage_previous_progress: retainage that was already reported in prior periods for stored materials (this is subtracted to avoid duplication).

This formula adds up all new retention for work and materials this period (including adjustments if materials have been moved into work-in-place) and subtracts any retention that’s already been accounted for in prior periods to ensure accuracy.