---
title: Finance quick start
description: From an empty organisation to a first reconciliation and a recovery ledger with numbers, in plain steps, with the hotel pack. Also the demo organisation make cloud-dev seeds and the smoke that checks it.
section: finance
order: 2
audience: [user, operator, builder]
sources: [services/nodejs-cloud/lib/finance/demo.ts, services/nodejs-cloud/scripts/finance-demo.ts, scripts/finance-demo-smoke.sh, scripts/test-finance-demo-smoke.sh, scripts/cloud-dev.sh]
features: [cloud.make]
---

This page takes an organisation from nothing to its first reconciliation: an entity, the
[hotel pack](/docs/finance/reconciliation-packs.md#hotel), a month of files, a run, the cases it opens, a claim letter and the
[recovery ledger](/docs/finance/reconciliation-recovery.md#ledger). It uses a hotel because the hotel pack sets most of it up for
you. Each step links to the page that explains it in full.

## Before you start {#before}

The organisation needs two Finance modules: **Capture** (`finance.capture`) and **Reconciliation** (`finance.recon`).

- On Petawork Cloud, the operator puts your organisation on a client plan that lists them. See
  [Products and client plans](/docs/cloud/products-and-plans.md).
- On a self-hosted install with no client plans, an owner switches them on in **Settings > Products**.

You need a role that may set Finance up: an owner or admin of the organisation, or a Finance
[controller](/docs/finance/roles.md). Finance then shows in the rail.

## 1. Add the entity {#entity}

Open **Finance > Settings > Entities** and press **Add entity**. Give the property's short name, its country, the
currency it keeps its books in, and its time zone. The time zone matters: cases and the ledger count days in it. See
[Reference data](/docs/finance/reference-data.md#entities).

## 2. Add the counterparties {#parties}

Open **Finance > Parties** and press **Add party** once for each business that pays you or keeps part of your money:
each booking agency and the card gateway. A party is a vendor here. See [Parties](/docs/finance/parties.md).

## 3. Install the hotel pack {#pack}

Open **Finance > Reconciliation > Packs**, open **Hotel** and press **Install**. Pick the entity and a party for each
counterparty, and the date the contracts start. One step makes:

- five sources: the property system, each agency's statement, the gateway's settlement report and the bank statement;
- the ruleset that pairs them;
- a contract for each agency, with its commission and payout terms.

Check both contracts against the ones you signed (**Reconciliation > Contracts**) and the file layouts against your own
exports before you import. See [Installing a pack](/docs/finance/reconciliation-packs.md#install).

## 4. Import a month of files {#import}

Open **Finance > Reconciliation > Sources**. For each source, open it, press **Import a file** and upload that source's
file for the month. Each line becomes a record once: importing the same file again is refused. See
[Sources](/docs/finance/reconciliation-sources.md).

## 5. Run the reconciliation {#run}

Open **Reconciliation > Runs** and press **Start a run**. Pick the hotel ruleset and the month. The run pairs the
records rule by rule and opens a case for every gap: a commission above the contract, a payout short or late or
missing, a card charged twice, a refund nothing explains. The run's **Unmatched** view is the workbench for what is
left. See [Runs](/docs/finance/reconciliation-runs.md) and [the workbench](/docs/finance/reconciliation-workbench.md).

## 6. Claim the money back {#claim}

Open **Reconciliation > Claims** and press **New letter**. Pick a counterparty and its open cases. Petawork drafts a
letter with a table of each case, the contract clause it follows and the amount. Read it, edit it if you need to, and
press **Approve**. Then send it by email, or print it, send it yourself and press **Mark sent**. Sending marks the cases
claimed. See [Claim letters](/docs/finance/reconciliation-recovery.md#claim-letters).

## 7. Record what came back {#recover}

When a counterparty pays, open the case under **Reconciliation > Cases** and press **Update**: mark it recovered with
the amount, or partly recovered. Write off a gap that is not worth claiming, with a note. **Reconciliation > Ledger**
then shows, by counterparty and month, what was at stake, claimed, recovered and written off. That is the number to
show the client.

## Not a hotel? {#other}

Without a pack, make the same pieces yourself: a [source](/docs/finance/reconciliation-sources.md) per file you reconcile, a
[ruleset](/docs/finance/reconciliation-rules.md) that pairs them, and a [contract](/docs/finance/recon-contracts.md) per counterparty whose
deductions you want checked. Steps 4 to 7 are the same.

## The demo organisation {#demo}

`make cloud-dev` seeds a demo organisation so you can see all of this with numbers in it, on a local cloud. It is
**Larkmoor Bay Hotel (demo)**, an invented hotel. Its counterparties are Agency A BV, Travel Agency B and Card Gateway,
also invented, and no file holds a bank account number.

The seed goes through the same code the app uses:

- a client plan, `finance-demo`, of Finance capture and reconciliation only, so the rail shows Finance and nothing else
  but Home and Admin;
- one entity, the three parties and the hotel pack, with a contract per agency;
- the [synthetic hotel month](/docs/finance/reconciliation-packs.md#synthetic) (seed 1, 3,000 reservations, March 2026) imported through
  the import job and run once;
- a claim letter to each agency, approved and marked sent. Agency A pays back its over-commission and 30.00 of a 50.00 short
  payment; Agency B's 4.37 currency loss is written off; its missing remittance stays claimed.

The generator is seeded, so the recovery ledger is always the same:

| Cases | At stake | Recovered | Claimed | Written off | Open |
|---|---|---|---|---|---|
| 8 | EUR 78,897.20 | EUR 47.88 | EUR 78,183.95 | EUR 4.37 | EUR 641.00 |

The cases count in the month they were opened, so the ledger shows them under the month you seeded.

Seeding again changes nothing. `FINANCE_DEMO=0 make cloud-dev` skips it; `bun run finance:demo` in
`services/nodejs-cloud` runs it alone against `DATABASE_URL`.

**Opening it.** A local cloud has no sign-in for an organisation's members, so the seed writes a session for the demo
owner to `data/cloud-dev/finance-demo-session` (valid 12 hours, never printed). In your browser's developer tools, set
the cookie `venom_cloud_session` for `127.0.0.1` to the contents of that file, then open
`http://127.0.0.1:3100/finance/recon/ledger`.

**Checking it.** `scripts/finance-demo-smoke.sh [http://127.0.0.1:3100]` seeds twice against the local cloud's database,
asserts the ledger above, then requests the Finance pages as the demo owner (home, documents and one document's review,
sources and one source, rules, contracts and one contract, packs, runs, one run's summary and unmatched view, cases and one
case, claims and one letter, the ledger). Each must answer 200 without an error page; the ledger page must show the totals;
the rail must show Finance and no other product. `scripts/test-finance-demo-smoke.sh` (in `make test-scripts`) tests the
smoke itself against a fake cloud.
