# Rent Demo Split: set-up and simulation plan

> **Gamma ERP business simulation.** A plan for Claude (Claude Code with the Gamma ERP connector) to set up a made-up business in your own Gamma ERP, enter its work and show the reports. Everything runs on your computer; all names and numbers are invented. Gamma ERP is open source (AGPL-3.0): https://github.com/Gamma-Wallet/GammaERP. More simulations: https://blog.gamma-wallet.com/en/erp/simulations

The full plan for setting up and simulating a small car rental in Split, Croatia, in the local Gamma ERP, through Claude and a connector for its company. The same logic as the other plans applies: one step at a time, a table before every change, a yes before every change and before every posting.

This plan tests:
- **The cars as fixed assets with a serial number (the VIN),** depreciated monthly. One old car is **sold at its book value** (a fixed asset sold as a normal sale), and one is damaged and repaired.
- **A booking's documents:** a quote (offer), the rental agreement (a contract, from the offer), and the invoice at the car's return (from the contract), through `make_next_document`.
- **Foreign currency on sales:** British tourists pay in **GBP** and some American ones in **USD**, at the day's rate. The company's own currency is EUR.
- **Security deposits:** a deposit taken at pick-up and given back at return, through the cash desk's money in and out.
- **A full reversal** of a wrong invoice, and its correction.
- **Each car's revenue and costs:** fuel charged, repairs, cleaning.

## 1. Where it runs

| Item | Value |
|---|---|
| ERP screens | http://127.0.0.1:8090 |
| Claude connector (new) | `gamma-erp-rent` → `http://127.0.0.1:8090/mcp`, signed in as `rent.owner` |
| Company | Rent Demo Split d.o.o., code `RENTSPLIT`, Croatian pack, currency EUR |
| Credentials | `rent-credentials.txt` in the working folder. Never repeat a password or token in chat |

## 2. Rules for the session

1. Use only the `mcp__gamma-erp-rent__*` tools (or the same server over HTTP, see the install section). `list_workplaces` must answer `RENTSPLIT`.
2. Before every change, show a table and wait for a yes; then `confirm=true`. Posting, reversals and depreciation journals are final: say so before asking.
3. Nothing is deleted; read the guide (documents (offers, contracts, flows, reversing), fixed assets (depreciation, selling an asset), stock (serial numbers), currencies-and-payments, point-of-sale (money in and out)) instead of guessing.
4. What the ERP can't do goes on the "Missing / not possible" list (section 16).
5. Show each week's drafts as one group; post only after a yes. The Croatian chart keeps Croatian account names.

## Install the ERP and run everything in one go

These steps are for a Claude Code session on the user's computer, with a shell and Docker. In one run Claude installs Gamma ERP (if it isn't running yet), makes the company, connects itself to it, and then inserts the sample data of this plan, step by step. Nothing is sent outside this computer: the ERP runs on 127.0.0.1 only.

### What it needs

| Need | Check |
|---|---|
| Docker Desktop (or Docker Engine with Compose v2), running | `docker compose version` |
| Git, or a way to download two files from GitHub | `git --version` |
| Free ports 8090 (screens, API, MCP) and 5433 (database) on 127.0.0.1 | `curl -s http://127.0.0.1:8090/health` answers nothing yet, or "Healthy" if the ERP is already there |
| About 2 GB of disk for the images and the database | – |

### One yes first

Before doing anything, Claude shows the user this whole section as one plan (install, company, connector, then the data steps) and asks for one yes. Making the company can't be undone (the ERP deletes nothing), so it is named in that question. **One-go mode:** if the user answers "do it all", that one yes covers every set-up step of this plan; Claude still shows each step's table as it goes, stops on any refusal, and asks again before each posting group (posting is final).

### 1. Install the ERP (skip if it already answers "Healthy")

```sh
# a folder of its own, e.g. ~/gamma-erp
git clone --depth 1 https://github.com/Gamma-Wallet/GammaERP.git gamma-erp
cd gamma-erp/deploy
cp .env.example .env
```

Then set `.env` for a local install (edit the file; on Windows use the editor or PowerShell, not `sed -i`):

| Setting | Local value |
|---|---|
| `ERP_TAG` | `gamma` (the latest release) |
| `POSTGRES_PASSWORD` | a long random password (generate it; keep it only in `.env`) |
| `AUTH_REDIRECT_URI` | `http://127.0.0.1:8090/signed-in` |
| `AUTH_REQUIRE_HTTPS` | `false` (local test, no TLS) |
| `MCP_RESOURCE` | `http://127.0.0.1:8090/mcp` |
| `AUTH_SIGNING_CERTIFICATE`, `AUTH_ENCRYPTION_CERTIFICATE`, `AUTH_CERTIFICATE_PASSWORD` | empty (without certificates a restart signs everyone out, which is fine locally) |
| `MAIL_HOST` | empty (e-mail off) |

```sh
docker compose up -d                 # pulls the images from ghcr.io; if the pull is refused, use: docker compose up -d --build
curl -s http://127.0.0.1:8090/health # wait until it answers "Healthy" (the first start runs the migrations: up to a minute)
```

If the ERP is already installed in another folder, use that folder's `deploy` directory for the commands below (`docker ps` shows the containers `gamma-erp-web-1`, `gamma-erp-erp-1`, `gamma-erp-db-1`).

### 2. Make the company (skip if it already exists)

```sh
docker compose exec erp dotnet /app/Gamma.Erp.Api.dll create-company --company "Rent Demo Split d.o.o." --code RENTSPLIT --country HR --username rent.owner --activity GENERAL
```

It prints three lines: `Company … made, … configuration rows loaded. rent.owner is its administrator.`, then `First password: …` and `First Claude token: GE_…`. Both secrets are shown only once:
- Save them in `rent-credentials.txt` in the working folder (not in the project, never in git), and never repeat them in chat.
- Tell the user where the file is: the password is for signing in at http://127.0.0.1:8090, and must be changed at the first sign-in.

"Refused: … already …" means the user name or company is already there: don't make it again. Ask the user for that company's Claude token, or make a new token for `rent.owner` on the screens (account menu › Claude tokens).

### 3. Connect Claude to the company

```sh
claude mcp add --transport http gamma-erp-rent http://127.0.0.1:8090/mcp --header "Authorization: Bearer <the GE_ token>"
```

This adds the connector `gamma-erp-rent` to the user's Claude configuration; the other connectors stay as they are. Pass the token from the credentials file without printing it.

A connector added during a session is often loaded only in a new session. **To carry on in the same run**, call the same MCP server over HTTP with a small script: a JSON-RPC `initialize`, then `notifications/initialized`, then `tools/call` with the tool's name and arguments, each a POST to `http://127.0.0.1:8090/mcp` with the headers `Authorization: Bearer <token>`, `Content-Type: application/json`, `Accept: application/json, text/event-stream`, and `Mcp-Session-Id` from the first answer. Keep the script and the token in the working folder. The tools, their checks and their answers are exactly those of the connector. Otherwise, tell the user to start a new chat and continue from the progress log.

### 4. Check, then insert the data

1. `list_workplaces` answers with the workplace `RENTSPLIT`; `tools/list` includes `save_register_row`, `produce`, `stay`, `book_seats` and `report`.
2. Follow "How to insert the sample data" below, from the first step not yet done (the status table and the progress log say which).
3. At the end, show the user: the address http://127.0.0.1:8090, the user name `rent.owner` and where the first password is, the users made (their passwords are in the same credentials file), and the end reports.

### To start again from scratch

Only on the user's explicit request, because it deletes every company in this local ERP: `docker compose down -v` in the `deploy` folder removes the containers and the database volumes. Then begin at step 1.

## How to insert the sample data

Every table in this plan is sample data to put into the ERP. These steps say how, for the Claude session that does it with the `gamma-erp-rent` connector. Everything is made up (names with "Demo", placeholder tax numbers): never use a real person's or company's data.

### Before the first step

1. Check the connector: `list_workplaces` must answer with the workplace `RENTSPLIT`, and the tool list must include `save_register_row`, `produce`, `stay`, `book_seats` and `report`. If they are missing, the ERP is older than v0.1.5-gamma: update it (`docker compose pull && docker compose up -d`), then reconnect the connector or start a new chat.
2. Step 0 makes the company on the server: it needs the user's yes first, because it can't be undone. Then the new connector is added and reloaded (section 4).
3. Read the guide pages named in section 2, and `read_configuration` for what the pack already has (VAT groups, document types, posting scenarios, point-of-sale settings). Use the pack's own rows wherever they fit; add only what is missing.
4. Open a progress log: a file `rent-progress.md` in the working folder. After every step, write what was made (each row's code and id), what was refused and why, and what is next. A new session reads it first and carries on from there.

### For each step

1. **Look first.** Before making a row, check that it isn't there already (`find_partners`, `find_products`, `find_cost_centers`, `get_register_row`, `register_setup`, `list_documents`). A row that exists is changed only if the plan says something different; it is never made twice.
2. **Show the table.** Show the user the step's rows exactly as they will be saved: codes, names, types, categories, VAT groups, prices, quantities, dates. Say which rows already exist and are only checked.
3. **Wait for the yes.** Call the changing tools with `confirm=true` only after an explicit yes for that step. One yes covers the whole table shown, not the next step.
4. **Make the rows in order, a few at a time.** Parents before children (company → places → tills; categories → types → products → recipes → prices). After each group, read the rows back and compare them with the table.
5. **When the ERP refuses,** stop that row, show the refusal word for word, and change nothing to work around it. If the plan was wrong (a wrong code, a missing parent), correct the plan's row, show it and ask again. If the ERP can't do it at all, add it to the "Missing / not possible" list and go on with the rest.
6. **Check the step.** Read the step's result with the read tools (`register_setup`, `get_register_row`, `calculate_production`, `pos_info`, `stock`, `trial_balance`…) and show a short summary: made, already there, refused. Write it to the progress log.

### Documents and postings

1. **Drafts first.** Make each week's documents as drafts (`save_draft_document`, the repairs board, `save_journal_sheet`), dated on their real day in October. Show the week as one table: each document's type, date, sides, lines and total, with the week's totals per type.
2. **Post after a yes.** Posting is final, and so are productions, unit splits, till payments, check-outs and seat bookings: say so before asking. Post in date order: purchases and production before the sales that use their stock, invoices before the payments against them.
3. **Check after posting.** After each week, show `stock` (nothing should be negative), `open_items`, and the trial balance up to that day (debit = credit). If something is off, stop and show it: a wrong posted document is corrected only by a reversal (`reverse_document`), after the user's yes.
4. **Never make the same document twice.** Before each document, check with `list_documents` (type, day, external number) that it isn't there already, for example after a lost connection.

### Amounts and dates

- Use the amounts in the plan's tables. Where a table gives a range (sales of a day, people at a show), choose values inside it, vary them from day to day so the weeks look real, and show them before making anything.
- Prices with "VAT incl." go on lines as the value with VAT; prices "excl. VAT" as the price. Round to cents; keep counts whole.
- Every document carries its own day in October 2026. The live items at the end (a shift, a stay, a seat booking, a repair job) are dated today on purpose.

### When it's done

1. Go through the status table (section 3): every step done, or listed as missing with its reason.
2. Show the reports of the "Reports to show at the end" section.
3. Finish the progress log with the final figures (revenue, costs, result, stock value, open items) and the "Missing / not possible" list.

## 3. Status

| Step | What | Status |
|---|---|---|
| 0 | Install if needed; make the company; connect `gamma-erp-rent` | To do: needs the user's yes |
| 1 | Company details, banks (EUR, GBP), cash desk, the office (kind Shop) with one till, the car park, the airport desk | To do |
| 2 | Users, roles, menus | To do |
| 3 | Partners (8) | To do |
| 4 | Categories, types (cars: fixed assets with VIN serials), products: 10 cars in 4 groups, 4 rental rates, 6 extras and charges | To do |
| 5 | Rates (GBP, USD); prices | To do |
| 6 | Opening: capital, the 10 cars bought and registered as assets | To do |
| 7 | Simulation: 12–25 October 2026 | To do |
| 8 | Month end: depreciation, the car sale, recurring sheets | To do |
| 9 | Reports | To do |

## 4. Step 0

Follow "Install the ERP and run everything in one go" above:

`create-company --company "Rent Demo Split d.o.o." --code RENTSPLIT --country HR --username rent.owner --activity GENERAL`

## 5. Step 1: places

| What | Code | Detail |
|---|---|---|
| Company details | RENTSPLIT | Rent Demo Split d.o.o.; Obala Lazareta, 21000 Split, Hrvatska; OIB 00000000000 (placeholder) |
| Bank EUR | BANK_EUR | "Banka – poslovni račun" |
| Bank GBP | BANK_GBP | "Banka – devizni račun GBP" (card takings in GBP) |
| Cash desk | CASH_DESK0 | "Blagajna" (office cash, deposits in cash) |
| The office, kind Shop, one till | POS_URED0, TILL0 | "Ured – Obala Lazareta" (town office) |
| Car park (WAREHOUSE) | PARK0 | "Parkiralište" (where the cars stand when not rented) |
| Airport desk (a place under the office) | DESK_AIR | "Zračna luka Split – pult" (airport desk: pick-ups and returns) |

## 6. Step 2: users

| User name | Name | Role | Shift |
|---|---|---|---|
| rent.owner | Owner | Administrator | – |
| rent.racunovodja | Accountant (off-site) | Finance | – |
| rent.ured.jutro | Rental desk, early (07:00–15:00) | Sales, Cashier | early |
| rent.ured.vecer | Rental desk, late (15:00–23:00) | Sales, Cashier | late |

The 4 workers: 2 rental agents (the users; quotes, agreements, invoices, deposits) and 2 drivers/cleaners (no user; they move and clean the cars).

## 7. Step 3: partners

| Name | Category | Currency | Payment days | Role |
|---|---|---|---|---|
| Auto Demo Zagreb d.d. (car dealer) | Suppliers and Clients | EUR | 30 | Sells the cars; buys the old one back |
| Servis Demo Split (garage) | Suppliers | EUR | 15 | Servicing and the damage repair |
| Gorivo Demo (fuel) | Suppliers | EUR | 15 | Fuel for refilling cars returned empty |
| Osiguranje Demo d.d. (insurer) | Suppliers | EUR | 30 | Fleet insurance €1,200/month |
| Najam Demo Lazareti (landlord) | Suppliers | EUR | 0 | Rent of the office and the car park €1,800/month |
| HEP Demo (electricity) | Suppliers | EUR | 30 | About €150/month |
| Računovodstvo Demo (accountant) | Suppliers | EUR | 30 | Fee €350/month |
| Hotel Demo Split (a hotel sending guests) | Clients | EUR | 30 | A 10 % discount; invoiced monthly for its guests' rentals |

Tourist renters are billed under their own names to the general client, or as clients made at the booking.

## 8. Step 4: categories, types, products

VAT (the Croatian pack has 25 %, 13 %, 5 %, 0 %): rentals and extras 25 %; cars bought and sold 25 %; insurance exempt (0 %).

**Cars** (type "Vozilo": **fixed asset**, **tracks serial numbers** = the VIN, unit piece):

| Code | Car group | Cars and VINs (made up) | Cost (excl. VAT) |
|---|---|---|---|
| VOZ-A | Group A, small (e.g. a city car) | 4: VIN `DEMOA00000000001`…`04`, plates ST-100-AA … ST-103-AA | €13,500 each (the 4th bought used: €9,000) |
| VOZ-B | Group B, compact | 3: `DEMOB…01`…`03` | €19,000 each |
| VOZ-C | Group C, family / estate | 2: `DEMOC…01`, `02` | €26,000 each |
| VOZ-D | Group D, 9-seat van | 1: `DEMOD…01` | €38,000 |

Cars are one product per group, each car told apart by its VIN (the serial number). The plate goes in the rental agreement's note.

**Rates and extras** (services):

| Code | Name | Unit | Price (excl. VAT, low season) |
|---|---|---|---|
| NAJ-A | Najam grupa A (rental, group A) | day | €32 |
| NAJ-B | Najam grupa B | day | €42 |
| NAJ-C | Najam grupa C | day | €58 |
| NAJ-D | Najam kombi (van) | day | €95 |
| DOD-SJE | Dječja sjedalica (child seat) | day | €5 |
| DOD-GPS | GPS | day | €4 |
| DOD-OSI | Puno osiguranje (full insurance, no excess) | day | €14 |
| DOD-VOZ | Dodatni vozač (extra driver) | piece | €20 |
| DOD-AER | Preuzimanje u zračnoj luci (airport pick-up or drop-off) | piece | €25 |
| NAK-GOR | Gorivo (fuel charge, car returned not full) | piece | €35 flat |
| NAK-CIS | Čišćenje (extra cleaning) | piece | €40 |
| NAK-STE | Šteta (damage charge to the renter, up to the excess) | piece | as charged |

## 9. Step 5: rates and prices

- `set_exchange_rates` for GBP and USD from 12 to 31 October 2026 (one unit in EUR: GBP about 1.17–1.19, USD about 0.92–0.94), from the source the user names (e.g. the ECB reference rate).
- Prices from 2026-10-01; Hotel Demo Split 10 % off.

## 10. Step 6: opening (12 October)

| Document | Detail |
|---|---|
| Owner's capital | €220,000 into BANK_EUR (the cars are bought with it) |
| Float | €300 into Blagajna |
| The 10 cars (purchase invoice, Auto Demo Zagreb, into PARK0, with VINs) | €196,500 in all (3 × €13,500, 1 used at €9,000, 3 × €19,000, 2 × €26,000, 1 × €38,000); registered as assets (company and tax books), 48 months, start 12 October; one car (group A, `…04`) was bought used, so it starts at a lower value (€9,000) with 24 months left |

## 11. Simulation: 12–25 October 2026

### 11.1 A booking, step by step

| # | Document | Detail |
|---|---|---|
| 1 | Quote (offer) by e-mail | Group, days × rate, extras; posted (books nothing) |
| 2 | Rental agreement (contract, `make_next_document` from the offer) at pick-up | The car's VIN, the dates, the extras; the renter's name; posted (books nothing) |
| 3 | Deposit | Cash desk money in (or a card pre-authorisation, noted only): €300 (A, B), €500 (C, D) |
| 4 | The car leaves | No stock document: a rented car stays in the car park's stock as the company's asset; the pick-up place (office or airport) is in the agreement's note (section 16) |
| 5 | Invoice at return (`make_next_document` from the contract) | Days actually used, extras, fuel or cleaning charges; in EUR, GBP or USD (the renter's card currency) at the return day's rate; paid at the desk |
| 6 | Deposit back | Cash desk money out, the same amount (or less a damage charge, invoiced) |

### 11.2 The two weeks' bookings (low season: 50–60 % of the fleet rented)

| # | Renter | Currency | Car | Days | Extras | Notes |
|---|---|---|---|---|---|---|
| 1 | J. Smith (UK) | GBP | A 01 | 12–16 Oct | child seat, airport drop-off | – |
| 2 | M. Brown (UK) | GBP | B 01 | 12–19 Oct | full insurance | – |
| 3 | Hotel Demo Split guest | EUR (invoiced to the hotel) | A 02 | 13–15 Oct | – | monthly invoice to the hotel |
| 4 | K. Müller (DE) | EUR | C 01 | 13–20 Oct | extra driver, child seat × 2 | – |
| 5 | S. Johnson (US) | USD | D 01 | 14–18 Oct | GPS, airport pick-up | – |
| 6 | L. Rossi (IT) | EUR | B 02 | 15–17 Oct | – | returned not full: fuel charge |
| 7 | A. Taylor (UK) | GBP | A 03 | 16–23 Oct | full insurance | – |
| 8 | Hotel Demo Split guest | EUR (hotel) | B 03 | 17–19 Oct | – | – |
| 9 | P. Novak (CZ) | EUR | A 01 | 18–22 Oct | – | **a scratch on return**: damage charge €250 (no full insurance), repaired by Servis Demo (€410) |
| 10 | E. Wilson (UK) | GBP | C 02 | 19–25 Oct | child seat | – |
| 11 | D. Garcia (ES) | EUR | B 01 | 20–24 Oct | extra driver | the invoice is made for group C by mistake: **reversed whole** and made again for group B |
| 12 | Hotel Demo Split guest | EUR (hotel) | A 02 | 21–23 Oct | – | – |
| 13 | R. Davies (UK) | GBP | D 01 | 22–25 Oct | – | – |
| 14 | T. Anderson (US) | USD | B 02 | 23–25 Oct | GPS | – |

Each booking's quote, agreement, deposit, invoice and deposit back, on their days. The hotel's three guests are invoiced in one invoice to Hotel Demo Split on 31 October (30 days).

### 11.3 Costs

- Fuel bought for the cars returned not full (Gorivo Demo, an invoice a week).
- Servis Demo: the scratch repair on A 01 (€410, 21 Oct), and a service on B 01 (€180, 24 Oct).
- Card takings in GBP arrive in BANK_GBP; on 30 Oct the bank changes GBP 2,000 into EUR (a transfer BANK_GBP → BANK_EUR at that day's rate).

### 11.4 Payments

Suppliers paid by hand against each invoice number; the dealer's invoice for the cars was paid at once from the opening capital (a payment on 12 Oct).

## 12. Month end (31 October)

1. **Depreciation** of the 10 cars (both books, 31 October), and the company book's journal.
2. **Selling the old car:** the used group A car (`…04`) is sold back to Auto Demo Zagreb on 31 October. Show its book value (`depreciation` assets); a sales invoice of 1 × VOZ-A, serial `DEMOA…04`, at its book value; posted. Its depreciation stops.
3. **Recurring cost sheet** (31 Oct) and **payment sheet** (5 Nov): rent €1,800, fleet insurance €1,200, electricity €150, accountant €350; total €3,500; both repeated for November, not posted.
4. **Wages:** 4 × €1,500 = €6,000, one journal entry.
5. **The hotel's monthly invoice** (its guests' three rentals, 10 % off).

## 13. Reports to show at the end

| Report | Tool |
|---|---|
| Trial balance, profit and loss, balance sheet | report tools |
| Revenue by car group and by car (serial/VIN), and by extra | `sales_lines`, `lots_and_serials` |
| Utilisation: days rented of days available, per car | From the agreements and invoices |
| Each booking's chain: quote → agreement → invoice | `document_details` made / flows |
| Foreign currency: GBP and USD invoices, the bank's exchange, the differences | `account_ledger`, `exchange_rates` |
| Deposits taken and given back (the cash desk) | `report` cost-center-ledger for Blagajna |
| The damaged car: charge to the renter, repair cost | `sales_lines`, the garage's invoice |
| The reversed invoice and its correction | `get_document`, `document_details` |
| The cars: value, depreciation, book value; the one sold | `depreciation` assets |
| Open items (the hotel), VAT return | `open_items`, `vat_return` |

## 14. Order of work and approvals

| # | Step | Approval |
|---|---|---|
| 0 | Install if needed; company; connector | Yes first |
| 1–3 | Places; users; partners | One yes each |
| 4 | Categories, types, cars with VINs, rates, extras | One yes |
| 5 | Rates (with their source), prices | One yes |
| 6 | Opening: the cars bought and registered | Yes before posting |
| 7 | Each week: quotes, agreements, deposits, invoices (with the reversal), costs, payments | Yes per week before posting |
| 8 | Month end: depreciation, the car sale, sheets, wages, the hotel's invoice | Yes before each posting |
| 9 | Reports and the missing list | – |

## 15. Not part of this plan

The fleet's insurance claims, traffic fines charged to renters, and online booking channels are left out.

## 16. Missing / not possible

| What | What is done instead |
|---|---|
| A fleet calendar (which car is free on which day) | The agreements' dates; or the hotel Stays screen could serve as a calendar, but that would be a workaround: not done |
| A car's place while rented (a fixed asset in use doesn't move stock) | The place is in the agreement's note |
| Card pre-authorisations for deposits | Cash deposits through the cash desk; card ones noted only |
| Mileage and fuel level at pick-up and return | In the agreement's note |
| Fetching exchange rates | Typed from the source the user names |
| Croatian fiscalisation (JIR/ZKI on receipts) and e-invoices | Check the guide; list it if missing |
| Payroll | One journal entry |
