Hemma reads the invoice. It pulls out the contractor, the date, the amount, the line items. But it does not assume which budget line each item belongs to — that is your call. Linking is the small task that turns "an invoice arrived" into "the budget moved."
You need a budget. If you have not built one yet, see building a budget from scratch or importing a budget from Excel or CSV. Linking does not work against an empty tree.
You also need the invoice (or quote) to be processed and confirmed — anything still in Needs review has to be resolved first. See reviewing and correcting what the AI extracted.
Open the invoice or quote from the Files page. Hemma drops you onto the linking screen automatically the first time, since linking is the next step after extraction. Each line item from the invoice gets its own card with three things on it:
Pick the budget line, leave the amount as-is, and move to the next item. When every line item is assigned, tap Confirm at the bottom.

For most invoices, Hemma proposes a budget line for each item before you arrive — you will see a suggestion already filled in, with a confidence colour next to it. Green-ish for high confidence, amber for medium, red-ish for low.
The suggestions come from the same matching engine that runs on imports: it reads the line description, the contractor's trade, your budget tree, and similar past links. Accept the highs without thinking, glance at the mediums, and pick yourself for the lows.
You always have the final word. Confirming records your choice, not Hemma's.
Linking is what makes the budget move. Until you link, an invoice is just a document — visible on Files and counted against the contractor, but not against any budget line. As soon as you confirm:
Quotes work the same way, except they feed the Quoted column instead of Invoiced.
If a single line item really does belong to two or more budget lines — "Plumbing rough-in + first fix" split between bathroom and kitchen — you do not have to pick one and lie. Add another row to the same item and divide the amount. See splitting one invoice across multiple budget lines for the full walkthrough.
Linking is not one-shot. After you confirm, the invoice is in its terminal state but you can re-open the linking from the invoice detail page at any time. Edit linking brings you back to the same screen with your previous picks loaded; change them and save. The budget moves accordingly.
The dropdown does not show my new budget line. The picker only lists leaf lines (lines with no children). If your new line is a category, add a child under it and link to that. The category will roll up automatically.
I see "Cannot link to a category" when I confirm. Same root cause: somewhere in your assignments, a budget line that has child lines is selected. Pick the leaf instead.
Does linking change the invoice itself? No. Linking is metadata next to the invoice — the document file is untouched. Anyone you share the file with sees exactly what arrived.
Who can link? Anyone on the project. The linking trail is logged so anyone else on the project can see who confirmed what and when.