Skip to main content

Sync approved purchase orders to Greentree

Send approved purchase orders to Greentree automatically, what's sent, how the branch is chosen, and how to fix failures.

When you need this

You want approved purchase orders to create or update a matching purchase order in Greentree automatically.

Purchase type mapping is how lines are coded. It isn't the PO sync itself. See Code a purchase request or PO for Greentree for line coding.

Before you start

  • Greentree is connected and the Company code is set.

  • SprintSuite support has switched on Greentree PO sync for your company.

  • Branches are synced, and either a default branch is set or your company has only one active branch.

  • Tax Codes are synced.

  • The supplier is linked to a Greentree creditor (Settings → Suppliers).

  • Every purchase type you use has a GL code for non-job lines, and an activity code for job lines.

  • Any job on the PO is synced or linked to Greentree.

Steps

1. Turn on PO sync

  1. Open Settings → Integrations → Greentree → Procurement.

  2. Turn on Automatically sync approved purchase orders.

2. Raise and approve the PO

  1. Create the purchase request or PO as usual. Pick a Greentree tax code on every active line.

  2. Approve it. Approval queues the sync, and the PO's Greentree status shows Syncing… then Success.

What goes to Greentree

  • Header: PO reference, the linked supplier, the branch, delivery date, and description.

  • Job lines: the job's Greentree code plus the purchase type's activity code.

  • Non-job lines: the purchase type's GL account.

  • Tax: each line's Greentree tax code, inclusive or exclusive.

Approved POs arrive in Greentree with status Entered. That's Greentree's approved, actionable state, not a draft.

How the branch is chosen

  1. The branch set on the PO.

  2. If none, the company's only active branch.

  3. If there's more than one, the default branch on the Branches tab.

If none of these resolves to an active branch, approval is blocked.

Updates and retries

  • Re-Synchronise pushes changes to a PO that's already synced.

  • Retry Sync re-queues a failed PO. Retry Failed Syncs on the PO list does this in bulk.

  • A sync still Syncing after 90 seconds is marked Failed so you can try again.

  • Rejecting a PO that's already in Greentree cancels it there.

What success looks like

  • The PO shows Success and stores its Greentree PO reference.

  • Greentree shows the PO with status Entered and the expected supplier, branch and lines.

  • Supplier bills against this PO can now be pushed. Bills need the PO synced first.

If it fails

The error appears on the PO and in its activity feed.

Message

Fix

Supplier is not mapped to a Greentree supplier

Link the supplier under Settings → Suppliers

Select an active Greentree branch

Set the branch on the PO, or a default branch on the Branches tab

Purchase order has no active lines to export

Reactivate the lines you need

Line N: Activity Code is not mapped on the purchase type

Add an activity code to that purchase type

Line N: Job is not linked to a Greentree JC Job

Sync or link the job, then retry

Line N: GL account is not mapped on the purchase type

Add a GL code to that purchase type

Line N: Greentree tax code is missing or not in catalogue

Pick a tax code on the line, or re-sync Tax Codes

Nothing queued after approval

Check Automatically sync approved purchase orders is on and the connection is live

Did this answer your question?