# FitDemo Dublin: 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 gym in Dublin, Ireland, 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:
- **Memberships as contracts:** monthly, quarterly and yearly members, billed by the invoice run, with renewals and cancellations.
- **CRM:** free trial passes as leads, followed on the pipeline until they join (Won) or don't (Lost, with the reason).
- **Bank statements:** members pay by direct debit, so the bank statement brings in their payments, which are matched to their invoices.
- **Files:** each member's signed membership form (a PDF) goes into the file store and is linked to the member as a File property.
- **Skins:** the gym's own colours on the screens.
- **The dashboard**, and the gym's equipment as **fixed assets**.
- **A small shop** at reception (drinks, protein bars, towels), on the till.

## 1. Where it runs

| Item | Value |
|---|---|
| ERP screens | http://127.0.0.1:8090 |
| Claude connector (new) | `gamma-erp-fit` → `http://127.0.0.1:8090/mcp`, signed in as `fit.owner` |
| Company | FitDemo Dublin Ltd, code `FITDUB`, Irish pack, currency EUR |
| Credentials | `fit-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-fit__*` tools (or the same server over HTTP, see the install section). `list_workplaces` must answer `FITDUB`.
2. Before every change, show a table and wait for a yes; then `confirm=true`. Posting, depreciation journals and the posted run's invoices are final: say so before asking.
3. Nothing is deleted; read the guide (contracts, documents (contracts), crm, currencies-and-payments (bank statements), system-settings (files, skins), fixed assets, point-of-sale) 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.

## 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 "FitDemo Dublin Ltd" --code FITDUB --country IE --username fit.owner --activity GENERAL
```

It prints three lines: `Company … made, … configuration rows loaded. fit.owner is its administrator.`, then `First password: …` and `First Claude token: GE_…`. Both secrets are shown only once:
- Save them in `fit-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 `fit.owner` on the screens (account menu › Claude tokens).

### 3. Connect Claude to the company

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

This adds the connector `gamma-erp-fit` 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 `FITDUB`; `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 `fit.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-fit` 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 `FITDUB`, 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 `fit-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-fit` | To do: needs the user's yes |
| 1 | Company details, bank (takes statements), cash desk, the gym, reception till, studio | To do |
| 2 | Users, roles, menus; 2 trainers as employees; the gym's skin | To do |
| 3 | Partners: 4 suppliers, the members (60 existing, from a list), a property for the membership form | To do |
| 4 | Categories, types, products: 5 memberships, 3 services, 5 shop items, 6 equipment items | To do |
| 5 | Prices, the reception menu | To do |
| 6 | Opening: capital, the equipment as fixed assets, shop stock | To do |
| 7 | The existing members' contracts | To do |
| 8 | Simulation: October 2026 | To do |
| 9 | Month end: invoice run, bank statement, depreciation, recurring sheets | To do |
| 10 | Reports | To do |

## 4. Step 0

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

`create-company --company "FitDemo Dublin Ltd" --code FITDUB --country IE --username fit.owner --activity GENERAL`

## 5. Step 1: places

| What | Code | Detail |
|---|---|---|
| Company details | FITDUB | FitDemo Dublin Ltd; Camden Street, Dublin 2, D02 Ireland; VAT IE0000000A, CRO 000000 (placeholders) |
| Bank | BANK0 | "Bank – current account", EUR, **takes bank statements** |
| Cash desk | CASH_DESK0 | "Reception cash" |
| The gym, kind Shop | POS_GYM0 | "FitDemo – Camden Street": the reception shop's stock |
| Reception till | TILL0 | "Reception", under the gym |
| Studio (a place) | STUDIO1 | "Studio" (classes and personal training), under the gym |

Open Monday–Friday 06:00–22:00, weekends 08:00–18:00, in two shifts (early 06:00–14:00, late 14:00–22:00).

## 6. Step 2: users, trainers, the skin

| User name | Name | Role |
|---|---|---|
| fit.owner | Owner | Administrator |
| fit.accounts | Bookkeeper (off-site) | Finance |
| fit.reception.early | Reception, early shift | Cashier, Sales |
| fit.reception.late | Reception, late shift | Cashier, Sales |

The 4 workers: 2 receptionists (the users; they sign members up and follow the leads) and 2 personal trainers, "Ciara Demo" and "Liam Demo" (employees).

**The skin** (`save_skin` upload, kind erp, then `use_skin`): "FitDemo Green" with the tokens the screens use (read `save_skin` file of the skin in use first to see the token names), e.g. the accent colour #1db954, a dark canvas. Show it on http://127.0.0.1:8090 and keep it in use, or go back with `save_skin` built-in.

## 7. Step 3: partners and members

| Name | Category | Payment days | Supplies |
|---|---|---|---|
| Gym Equipment Demo Ltd | Suppliers | 30 | Treadmills, bikes, racks, weights |
| Nutrition Demo Wholesale | Suppliers | 14 | Protein bars, shakes, drinks |
| Linen Demo Services (towels) | Suppliers | 30 | Towels (bought), laundry (monthly service) |
| Premises Demo Camden Ltd (landlord) | Suppliers | 0 | Rent €4,800/month |
| Energy Demo Ireland (electricity) | Suppliers | 30 | About €1,100/month |
| Water Demo (Uisce Demo) | Suppliers | 30 | About €90/month |
| Accountancy Demo Ltd | Suppliers | 30 | Fee €400/month |

**Members** (category Clients, a type "Member" with properties): `register_setup` partners, then `save_register_type` adds to the member type:

| Property | Code | Kind |
|---|---|---|
| Membership form | MEMBERSHIP_FORM | Photo or file (the form's link from the file store); if the kind offered is Photo only, use Photo |
| Date of birth | BIRTH_DATE | Date |
| Emergency contact | EMERGENCY | Text |
| Joined | JOINED | Date |

60 existing members: "Member Demo 001" … "060" (made with `save_register_row`, or the Migration menu's partners step from an Excel list, which is quicker: template, fill, check, import).

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

VAT (the Irish pack has 23 %, 13.5 %, 9 %, 4.8 %, 0 %): gym membership and training 9 % (the reduced rate for sporting facilities in Ireland: confirm), shop drinks and bars 23 % or 13.5 % (confirm), equipment and costs 23 %.

| Code | Name | Category | Unit | Cost | Price |
|---|---|---|---|---|---|
| MEM-MON | Monthly membership | Memberships | month | – | €49 |
| MEM-OFF | Off-peak monthly (before 16:00) | Memberships | month | – | €35 |
| MEM-STU | Student monthly | Memberships | month | – | €32 |
| MEM-QTR | Quarterly membership | Memberships | piece (3 months) | – | €135 |
| MEM-YR | Annual membership | Memberships | piece (12 months) | – | €480 |
| SER-PT1 | Personal training, 1 session | Services | piece | – | €45 |
| SER-PT5 | Personal training, 5 sessions | Services | piece | – | €200 |
| SER-DAY | Day pass | Services | piece | – | €15 |
| SHO-WAT | Water 0.5 l | Shop | piece | €0.30 | €1.80 |
| SHO-ISO | Sports drink | Shop | piece | €0.70 | €2.80 |
| SHO-BAR | Protein bar | Shop | piece | €1.10 | €3.20 |
| SHO-SHA | Protein shake | Shop | piece | €1.60 | €4.50 |
| SHO-TOW | Towel rental | Shop | piece | – | €2.00 |
| EQU-TRE | Treadmill (fixed asset) | Equipment | piece | €3,200 | – |
| EQU-BIK | Spin bike | Equipment | piece | €900 | – |
| EQU-RAC | Squat rack | Equipment | piece | €1,400 | – |
| EQU-DUM | Dumbbell set | Equipment | piece | €2,600 | – |
| EQU-CAB | Cable machine | Equipment | piece | €4,500 | – |
| EQU-ROW | Rowing machine | Equipment | piece | €1,100 | – |

Equipment: a type "Gym equipment" marked fixed asset.

## 9. Step 5: prices and the reception menu

Prices from 2026-10-01 as above. The reception menu: Day passes and training, Drinks and bars, Towels.

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

| Document | Detail |
|---|---|
| Owner's capital | €60,000 into the bank |
| Float | €200 into Reception cash |
| Equipment (purchase invoice, Gym Equipment Demo) | 6 treadmills, 10 spin bikes, 3 racks, 2 dumbbell sets, 2 cable machines, 3 rowers (€52,700); registered as assets (company and tax books), 60 months, start 1 October |
| Shop stock | Water 240, sports drinks 120, bars 150, shakes 60, towels 80 |

## 11. Step 7: the existing members' contracts

For each of the 60 members, a contract (posted) with a billing plan, next date 1 November 2026:

| Members | Membership | Plan |
|---|---|---|
| 001–030 | Monthly €49 | every 1 month |
| 031–040 | Off-peak €35 | every 1 month |
| 041–048 | Student €32 | every 1 month |
| 049–054 | Quarterly €135 | every 3 months (next dates spread over Oct–Dec) |
| 055–060 | Annual €480 | every 12 months; two end in November (to renew) |

The October invoices of the monthly members are made by an invoice run on 1 October (`run_contract_billing` run until 1 Oct), checked and posted.

## 12. Simulation: October 2026

### 12.1 Leads and new members (CRM)

| Day | Lead | Path |
|---|---|---|
| 3 Oct | 6 free trial passes (open day): "Trial Demo 01" … "06" | Qualify |
| 6–10 Oct | Trials 01–04 come back | Propose (the receptionist offers a membership) |
| 10–14 Oct | 01, 02 and 04 join (Won): monthly, student, annual | contract, billing plan; their form uploaded |
| 15 Oct | 03 | Lost: "too expensive" |
| 20 Oct | 05, 06 | Lost: "no reply" |
| 17 Oct | A corporate lead: "Tech Demo Ltd, 15 staff memberships" | Propose, open (€35 × 15 per month, close in November) |

**Joining:** client (`save_register_row`, member type, with BIRTH_DATE, JOINED), the signed form uploaded (`files` upload: a small PDF made for the test, base64) and its link set on MEMBERSHIP_FORM, the contract (posted), the first month invoiced at once (sales invoice), paid at reception (card).

### 12.2 Cancellations and changes

- Member 012 cancels on 18 Oct: the billing plan is stopped after October (`run_contract_billing` plan with no months), the contract ends 31 Oct.
- Member 027 moves from monthly to off-peak from November: a new contract from 1 Nov, the old plan stopped.

### 12.3 Reception

- One bill per shift per day (day passes, personal training sessions, drinks, bars, towels), paid by card or cash. Weekdays €120–260 a shift, weekends €150–300 a day.
- Personal training packs (5 sessions) sold to 6 members during the month.

### 12.4 Purchases and payments

- Nutrition Demo every Monday; towels' laundry monthly (an invoice of €350 on 31 Oct).
- Pay suppliers by hand against each invoice number.

## 13. Month end (31 October) and the bank statement

1. **Invoice run** for 1 November (`contract_billing` due until 1 Nov, then `run_contract_billing` run): the monthly members, the quarterly ones due, and the annual ones due; check and post.
2. **Renewals:** `contract_billing` renewals within 45 days: the two annual members ending in November; renew one for another year (on a yes); the other doesn't renew (its plan ends).
3. **Bank statement for October:** members paid their October invoices by direct debit. Make a statement file in the pack's format: one line per member paying (54 of the 60; 6 bounced, each with the member's invoice number in the text), the supplier payments, the card terminal's daily settlements of reception's card takings, and the bank's fees. Import it (`import_bank_statement`) and match each line (`bank_statements` with the line, then `decide_statement_line`); the 6 bounced members stay open.
4. **Depreciation** of the equipment (both books), and the company book's journal.
5. **Recurring cost sheet** (31 Oct) and **payment sheet** (5 Nov): rent €4,800, electricity €1,100, water €90, accountant €400; total €6,390; both repeated for November, not posted.
6. **Wages:** 4 × €2,700 = €10,800, one journal entry.
7. **The dashboard** (`dashboard`, October).

## 14. Reports to show at the end

| Report | Tool |
|---|---|
| Trial balance, profit and loss, balance sheet | report tools |
| Members: active contracts by plan, monthly recurring revenue, cancellations, renewals | `contract_billing`, `report` contracts |
| CRM: trials, conversions, lost reasons, the corporate lead | `pipeline`, `forecast`, `report` opportunity-documents |
| The bank statement: matched, bounced, fees | `bank_statements` |
| Members' forms in the file store | `files` list, `get_register_row` (the MEMBERSHIP_FORM link) |
| Equipment: value, depreciation | `depreciation` assets |
| Reception sales by shift | `sales_lines` by place |
| The dashboard; open items (the bounced members); VAT return | `dashboard`, `open_items`, `vat_return` |

## 15. Order of work and approvals

| # | Step | Approval |
|---|---|---|
| 0 | Install if needed; company; connector | Yes first |
| 1–2 | Places; users, trainers, the skin | One yes each |
| 3 | Partners, the member type's properties, 60 members (by migration or one by one) | One yes |
| 4–5 | Products; prices; menu | One yes each |
| 6 | Opening and the equipment as assets | Yes before posting |
| 7 | 60 contracts and October's invoice run | Yes before posting |
| 8 | Each week: leads, joins (forms uploaded), cancellations, reception bills, purchases, payments | Yes per week before posting |
| 9 | Month end: invoice run, renewals, bank statement, depreciation, sheets, wages, dashboard | Yes before each posting |
| 10 | Reports and the missing list | – |

## 16. Missing / not possible

| What | What is done instead |
|---|---|
| Door access and check-ins (member cards) | Not in the ERP |
| Class timetables and booking | Not in the ERP (the cinema's seats could serve as a class booking, but that's a workaround: not done) |
| SEPA direct debit collection files | The bank does the collection; the statement brings the payments in |
| Bounced direct debits charged a fee | Left open; the fee is not simulated |
| A trainer's sessions count | Each pack is sold; sessions used are not tracked |
| Payroll | One journal entry |
| Irish e-invoicing / Revenue Online Service | Check the guide; list it if missing |
