# Net Demo Cluj: 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 internet provider with an IT shop in Cluj-Napoca, Romania, in the local Gamma ERP, through Claude and a connector for its company. The company has been running for two years on another system, so it **moves to Gamma ERP on 1 October 2026** with its opening balances, clients and open invoices. 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:
- **Migration:** the Migration menu's steps, Excel templates and imports. The chart's opening balances, the clients, the open invoices and the stock come in from files: checked first, then saved.
- **A company in two languages:** Romanian and English. Products and partners are named in both, and the screens and the printouts follow the user's language.
- **Monthly subscriptions as contracts:** about 40 home and business subscribers, billed by the invoice run.
- **Modems and routers with serial numbers,** at the subscribers' homes as the company's **assets**.
- **Foreign currency:** equipment bought in **USD** (a Taiwanese maker) and **EUR** (a German distributor). The company's own currency is RON.
- **Bank statements:** two months' statements imported and matched (subscribers pay by bank transfer).
- **The IT shop:** laptops (with serials) and accessories sold over the counter, a full **reversal** of a wrong invoice, and the dashboard.

## 1. Where it runs

| Item | Value |
|---|---|
| ERP screens | http://127.0.0.1:8090 |
| Claude connector (new) | `gamma-erp-net` → `http://127.0.0.1:8090/mcp`, signed in as `net.owner` |
| Company | Net Demo Cluj SRL, code `NETCLUJ`, Romanian pack, currency RON, languages Romanian and English |
| Credentials | `net-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-net__*` tools (or the same server over HTTP, see the install section). `list_workplaces` must answer `NETCLUJ`.
2. Before every change, show a table and wait for a yes; then `confirm=true`. Posting, imports with confirm, reversals and depreciation journals are final: say so before asking.
3. Nothing is deleted; read the guide (getting-started (migration), contracts, stock (serials), fixed assets, currencies-and-payments (rates, bank statements), documents (reversing), company (languages)) 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 Romanian chart keeps Romanian account names; products and partners get both a Romanian and an English name (`language` ro, then en).

## 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 "Net Demo Cluj SRL" --code NETCLUJ --country RO --username net.owner --activity GENERAL
```

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

### 3. Connect Claude to the company

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

This adds the connector `gamma-erp-net` 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 `NETCLUJ`; `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 `net.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-net` 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 `NETCLUJ`, 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 `net-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-net` | To do: needs the user's yes |
| 1 | Company details (and its second language), banks (RON, EUR, USD), cash desk, warehouse, the IT shop with one till, the network (a place for the network equipment) | To do |
| 2 | Users, roles, menus, rights; 2 technicians as employees | To do |
| 3 | Categories and types (serials, assets at clients) | To do |
| 4 | Migration: products, partners, opening balances, open invoices, stock, from Excel | To do |
| 5 | Rates for USD and EUR; prices; the shop's menu | To do |
| 6 | The subscribers' contracts and the modems at their homes | To do |
| 7 | Simulation: October 2026 | To do |
| 8 | Month end and November's first days | To do |
| 9 | Reports | To do |

## 4. Step 0

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

`create-company --company "Net Demo Cluj SRL" --code NETCLUJ --country RO --username net.owner --activity GENERAL`

The company's own language is Romanian; English is the second (the default of every company). Check the language setting with `set_company_details` / `get_register_row` on the company, and `my_account` language for the users.

## 5. Step 1: places

| What | Code | Detail |
|---|---|---|
| Company details | NETCLUJ | Net Demo Cluj SRL; Strada Memorandumului, 400114 Cluj-Napoca, România; CUI RO00000000 and Reg. Com. J12/0000/2024 (placeholders) |
| Bank RON | BANK_RON | "Bancă – cont curent RON", **takes bank statements** |
| Bank EUR, bank USD | BANK_EUR, BANK_USD | Currency accounts for the suppliers abroad |
| Cash desk | CASH_DESK0 | "Casierie magazin" (shop cash desk) |
| Warehouse | WH0 | "Depozit": modems, routers, laptops |
| Network | NET0 | "Rețea" (the network): switches and antennas installed on the company's network (fixed assets) |
| The IT shop, kind Shop, with one till | POS_MAG0, TILL0 | "Magazin IT": open 09:00–19:00, two shifts on one till |

## 6. Step 2: users

| User name | Name | Role | Language |
|---|---|---|---|
| net.owner | Owner | Administrator | ro |
| net.contabil | Accountant (off-site) | Finance | ro |
| net.magazin.dim | Shop and subscriptions, morning (09:00–14:00) | Cashier, Sales | ro |
| net.magazin.dupa | Shop and subscriptions, afternoon (14:00–19:00) | Cashier, Sales | en (an English-speaking colleague: the screens in English) |

The 4 workers: 2 shop and subscription desk workers (the users), and 2 field technicians, "Andrei Demo" and "Ioana Demo" (employees: they install the modems).

## 7. Step 3: categories and types

| What | Proposal |
|---|---|
| Categories | Echipamente rețea (network equipment), Echipamente clienți (customer equipment), Magazin IT (IT shop), Servicii (services), Abonamente (subscriptions) |
| Types | "Echipament client" (modems, routers: **fixed asset**, **tracks serial numbers**); "Echipament rețea" (switches, antennas: **fixed asset**, serials); "Produs magazin" (laptops: tracks serials; accessories: goods); "Serviciu"; "Abonament" (unit month) |

## 8. Step 4: migration from Excel (`migration`)

The company moves from its old system on **1 October 2026**. Every step goes: template → filled file → import **without confirm** (it only checks, listing every error) → fix → import **with confirm** after the user's yes (all rows or none).

1. `migration` action steps: list the steps in their order and what each waits for.
2. For each step below: `migration` action template (Excel, base64), fill it with the rows, save it to the working folder, `migration` action import (check), then import with confirm.

| Step (order) | Rows |
|---|---|
| Products and services | The 16 products of section 9 (Romanian and English names, codes, types, units, VAT groups) |
| Partners | 5 suppliers and the 40 subscribers (30 homes: "Abonat Demo 01" … "30", 10 businesses: "Firma Demo 01 SRL" … "10"), with CUI placeholders for the businesses |
| Opening balances of the chart (on 30 September 2026) | Bank RON 86,400; bank EUR 3,000 EUR (about 14,910 RON at the rate of 30 September); clients 8,450; network equipment (fixed assets) 48,000, accumulated depreciation −14,400; customer equipment at clients 22,800, accumulated depreciation −7,700; stock 12,600 (debits 170,060 RON); share capital −20,000; suppliers −6,910 (USD 1,200 at about 4.55 = 5,460, plus 1,450 RON); VAT owed −2,600; retained earnings: the balancing figure, −140,550 RON at these rates (recompute it with the rates actually used). The migration's balancing account must end at zero (`migration` opening) |
| Open invoices of clients and suppliers | 12 subscribers' September invoices not paid yet (8,450 RON in all), 2 supplier invoices (USD 1,200 and RON 1,450) |
| Stock (quantities and values, with serials) | Modems 25, routers 15 in WH0; laptops 6; accessories |
| Fixed assets | The network equipment (8 switches, 4 antennas) and the 40 modems or routers already at the subscribers', each with its serial, value and depreciation so far |

Show `migration` opening at the end: the balancing account is zero, so the detail agrees with the chart.

## 9. Products

VAT (the Romanian pack has 21 %, 11 %, 0 %): everything at 21 %.

| Code | Name (ro / en) | Unit | Cost | Price (excl. VAT) |
|---|---|---|---|---|
| ECL-MOD | Modem fibră / Fibre modem | piece | USD 32 | (rented) |
| ECL-ROU | Router Wi-Fi 6 / Wi-Fi 6 router | piece | USD 48 | 450 RON when sold |
| ERE-SWI | Switch de rețea / Network switch | piece | EUR 420 | (network) |
| ERE-ANT | Antenă radio / Radio antenna | piece | EUR 650 | (network) |
| MAG-LAP | Laptop 15" / Laptop 15" | piece | EUR 520 | 3,400 RON |
| MAG-MOU | Mouse / Mouse | piece | 35 RON | 79 RON |
| MAG-TAS | Tastatură / Keyboard | piece | 60 RON | 129 RON |
| MAG-CAB | Cablu de rețea 3 m / Network cable 3 m | piece | 6 RON | 19 RON |
| SER-INS | Instalare / Installation | piece | – | 150 RON |
| SER-INT | Intervenție tehnică / Technician visit | piece | – | 120 RON |
| SER-SET | Configurare laptop / Laptop set-up | piece | – | 100 RON |
| ABO-H300 | Internet Acasă 300 Mbps / Home 300 | month | – | 50 RON |
| ABO-H1000 | Internet Acasă 1 Gbps / Home 1 Gbit | month | – | 70 RON |
| ABO-B500 | Internet Business 500 / Business 500 | month | – | 180 RON |
| ABO-BIP | IP fix / Static IP | month | – | 25 RON |
| ABO-ROU | Închiriere router / Router rental | month | – | 10 RON |

## 10. Step 5: rates and prices

- `set_exchange_rates` for USD and EUR, 1 October to 6 November 2026 (one unit in RON: EUR about 4.97–5.00, USD about 4.55–4.65), from the source the user names (e.g. the National Bank of Romania's daily rate).
- Sale prices from 2026-10-01; the shop's menu: Laptopuri, Accesorii, Servicii.

## 11. Step 6: the subscribers' contracts

For each of the 40 subscribers, one contract (`save_draft_document` contract type, posted; then billing plan every 1 month, next date 1 November 2026):

| Subscribers | Lines | Contract length |
|---|---|---|
| 20 homes | Home 300 + router rental | 12 months, started between Oct 2025 and Sep 2026 |
| 10 homes | Home 1 Gbit + router rental | 24 months |
| 8 businesses | Business 500 + static IP | 24 months |
| 2 businesses | Business 500 × 2 (two sites) + static IP × 2 | 24 months; one ends on 30 November 2026 (to renew) |

The modems and routers at their homes came in with the migration (fixed assets at the client, with serials). Show them per subscriber with `lots_and_serials`.

## 12. Opening

Covered by the migration: no separate opening documents. The till float: 300 RON from the bank into Casierie magazin on 1 October.

## 13. Simulation: October 2026

### 13.1 New subscribers (8 in October)

For each: a client (`save_register_row`), the contract (start on the installation day), the installation: goods transfer WH0 → the client's place of a modem (with its serial) as an **asset at the client**, registered as an asset (`run_depreciation` register, 36 months), an installation invoice (150 RON), and the technician on the job (on the document's properties or note).

### 13.2 Purchases in foreign currency

- **6 Oct:** 30 modems and 20 routers from the Taiwanese maker (**USD**), into WH0, with serials, at the day's rate; paid from BANK_USD on 27 Oct at that day's rate (exchange difference).
- **13 Oct:** 2 switches from the German distributor (**EUR**), installed on the network: fixed assets at NET0, 60 months; paid from BANK_EUR on 26 Oct.
- **20 Oct:** 6 laptops (EUR) for the shop, with serials.

### 13.3 The IT shop

- One bill per shift per day on TILL0 (laptops with their serials, accessories, set-up), paid by card or cash. Weekday 1,200–4,500 RON, Saturday 2,000–6,000 RON.
- **A full reversal:** on 15 Oct a laptop is invoiced to a business at the wrong price (an invoice of 3,800 instead of 3,400 RON). Reverse it whole (`reverse_document`, dated 15 Oct, final) and make the right invoice.

### 13.4 Bank statements

Subscribers pay their monthly invoices by bank transfer. Make two statement files for BANK_RON, in the pack's format (date, text, reference, amount):
- **October 1–31:** 30 of the 40 September and October invoices paid (each line with the invoice number in its text), the supplier payments, the bank's fees.
- Import it (`import_bank_statement`), then for each line `bank_statements` with the line to see its matches, and `decide_statement_line` match (to the client receipt made for it), or ignore (the bank's fee, booked separately).

### 13.5 Approval

Show each week's drafts as one group (new clients and contracts, installations, purchases, shop bills, the reversal, receipts, payments), with totals in RON and in the foreign currency. Post only after a yes.

## 14. Month end (31 October) and November's first days

1. **Invoice run** for 1 November: 48 draft invoices (40 + 8 new), checked and posted.
2. **Renewals:** `contract_billing` renewals within 60 days: the business contract ending 30 November; renew it for 24 months (`run_contract_billing` renew), only on a yes.
3. **Depreciation** of the network and the customer equipment (both books, 31 October).
4. **Recurring cost sheet** (31 Oct) and **payment sheet** (5 Nov): rent 4,800 RON, electricity 1,900 RON, the upstream internet connection 6,500 RON (a supplier "Backbone Demo SA"), accountant 1,500 RON; both repeated for November, not posted.
5. **Wages:** 4 × 6,000 RON = 24,000 RON, one journal entry.
6. **November's statement (1–6 Nov):** a second statement file with the first payments of November's invoices; import and match it.
7. **The dashboard** (`dashboard`, October): the figures the company's dashboard shows.

## 15. Reports to show at the end

| Report | Tool |
|---|---|
| The migration: steps, rows brought in, the balancing account at zero | `migration` steps and opening |
| Trial balance (opening on 1 Oct, closing on 31 Oct), profit and loss, balance sheet | report tools |
| Subscriptions: monthly revenue by plan, contracts, the renewal | `contract_billing`, `report` contracts |
| Customer equipment at subscribers (serials, value, book value) and the network equipment | `lots_and_serials`, `depreciation` assets |
| Foreign-currency purchases, payments, exchange differences | `account_ledger`, `exchange_rates` |
| Bank statements: lines and what each was matched to | `bank_statements` |
| The reversed invoice and its correction | `get_document`, `document_details` |
| The same product names in Romanian and English (one user each) | `get_register_row` (names) |
| Dashboard, open items, VAT return | `dashboard`, `open_items`, `vat_return` |

## 16. Missing / not possible

| What | What is done instead |
|---|---|
| Fetching exchange rates (BNR) | Typed from the source the user names |
| Usage or traffic metering, network monitoring | Not in the ERP: subscriptions are flat monthly fees |
| Direct debit or automatic matching of the statement | Matched line by line by hand |
| Romanian e-Factura and SAF-T (D406) | Check the guide; list it if missing |
| Payroll | One journal entry |
