# Kino Demo Freiburg: 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 cinema with one 25-seat auditorium in Freiburg im Breisgau, Germany, in the local Gamma ERP, through Claude and a connector for the cinema's own company. It follows the same logic as the gelateria, bar, pizzeria and hotel plans: one step at a time, a table before every change, a yes before every change and before every posting.

What is different in a cinema:
- **The cinema is a point of sale of the kind Cinema / theatre**, with an auditorium ("Saal 1"), 5 rows and 5 seats in each row.
- **A ticket is a product, one per film**, so sales come out by film.
- **Shows** (film, auditorium, day, time, price) are configuration rows.
- **Popcorn and nachos are composite items** that take their corn, oil, salt, sugar, bags and dip out of stock. Drinks are bought and resold as they are.
- **The film rental** (Filmmiete) is the biggest cost. The distributor invoices a share of each film's net ticket takings, film by film, every week.

**Shows and dates.** Seats are booked for shows from today on (`shows`, `book_seats`). So October's tickets go in as one bill per show (tickets as the quantity of the film's ticket), and real seat bookings are made live by Claude at the end (section 13, item 7).

## 1. Where it runs

| Item | Value |
|---|---|
| ERP screens | http://127.0.0.1:8090 (also http://localhost:8090) |
| Claude connector (new) | `gamma-erp-kino` → `http://127.0.0.1:8090/mcp`, signed in as `kino.owner` |
| Other connectors | Don't use any other Gamma ERP connector you may have (another company's) |
| Database | PostgreSQL on 127.0.0.1:5433, database `gamma_erp` |
| Company | Kino Demo Freiburg, code `KINOFREIBURG`, German pack, currency EUR |
| Credentials | `kino-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-kino__*` tools.
2. Call `list_workplaces` first. The workplace must be `KINOFREIBURG`.
3. Before every change, show a table of exactly what will be created and wait for a yes. Only then call the tool with `confirm=true`.
4. Posting and reversing are final. Till payments post at once. Say so before asking.
5. Nothing is deleted: a wrong row is switched off and corrected.
6. Read the guide instead of guessing (`gamma-erp://guide/README.md`, then point-of-sale (settings, events, paying, shifts), stock, recipes, accounting and users-and-rights).
7. Use only what the ERP supports. When something can't be done, don't work around it: add it to the "Missing / not possible" list (section 15) and carry on.
8. Show draft documents in groups (one week at a time) and post them only after a yes.
9. The German chart keeps its account names in German.

## 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 "Kino Demo Freiburg" --code KINOFREIBURG --country DE --username kino.owner --activity GENERAL
```

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

### 3. Connect Claude to the company

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

This adds the connector `gamma-erp-kino` 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 `KINOFREIBURG`; `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 `kino.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-kino` 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 `KINOFREIBURG`, 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 `kino-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 | Company made with `create-company`, connector `gamma-erp-kino` added | To do: needs the user's yes (it can't be undone) |
| 1 | Company details, bank, cash desk, the cinema, Saal 1 with 5 rows and 25 seats, two tills, settings | To do |
| 2 | Users, roles, menus, rights, "bills need an open shift" = No | To do |
| 3 | Partners (7) | To do |
| 4 | Product categories, types and units (add the litre) | To do |
| 5 | Products: 3 film tickets, film rental, snack ingredients and packaging, drinks | To do |
| 6 | Popcorn (2 sizes) and nachos: composite, with recipes | To do |
| 7 | Sale prices, the till's menu, the shows for the live demo | To do |
| 8 | Opening: capital and till float | To do |
| 9 | Simulation, weeks 1 and 2 | To do |
| 10 | Month end, with the recurring cost and payment sheets | To do |
| 11 | Reports | To do |

## 4. Step 0: the new company

The ERP's tools add a company only to an existing group, so a separate business can't be added beside another one through Claude. A separate business is made on the server with `create-company`. Run it only after the user's yes: the company and its administrator stay for good.

| # | Action | Detail |
|---|---|---|
| 1 | Run `create-company` in the `gamma-erp-erp-1` container | `--company "Kino Demo Freiburg" --code KINOFREIBURG --country DE --username kino.owner --activity GENERAL` |
| 2 | First password and first Claude token | Printed once. Save them to `kino-credentials.txt` in the working folder, never in chat. The user changes the password at the first sign-in |
| 3 | Connect Claude | Add a connector `gamma-erp-kino` to `.claude.json` with the new token. The other connectors stay as they are |
| 4 | Reload | A new connector may load only in a new session. If so, continue there with this plan |

Activity GENERAL loads the whole German pack (chart, documents, posting rules, VAT, the till, shows and seats, stock).

## 5. Step 1: company, money and places

| What | Code | Detail |
|---|---|---|
| Company details (`set_company_details`) | KINOFREIBURG | Trade name Kino Demo; address Gerberau, 79098 Freiburg im Breisgau, Deutschland; USt-IdNr. DE000000000 and Steuernummer (placeholders); phone and e-mail placeholders |
| Bank account (`add_cost_center`, BANK) | BANK0 | "Bank – Girokonto", EUR, on the pack's bank account |
| Cash desk (`add_cost_center`, CASH_DESK) | CASH_DESK0 | "Kinokasse", EUR, on the pack's cash account |
| The cinema, a point of sale of kind Cinema / theatre (`add_cost_center`, POS_EVENTS) | POS_KINO0 | "Kino Demo – Gerberau"; it also holds the snack and drink stock |
| Auditorium (AUDITORIUM) | SAAL1 | "Saal 1", under the cinema |
| Rows (SEAT_ROW) | ROW_A … ROW_E | "Reihe A" to "Reihe E", under Saal 1 (A nearest the screen) |
| Seats (SEAT), with their position property | A1–A5, B1–B5, C1–C5, D1–D5, E1–E5 | "Platz A1"… 25 seats, 5 under each row |
| Early till (TILL) | TILL0 | "Kasse früh (14:00–19:00)", under the cinema |
| Late till (TILL) | TILL1 | "Kasse spät (19:00–23:30)", under the cinema |
| The cinema's point-of-sale settings (`save_configuration_row`) | – | Screen Cinema / theatre (events); cash desk = Kinokasse; walk-in client = the general client; payment method Cash |

Read the cost-centre types' properties first with `register_setup` (cost-centres) to give each seat its position. The 25 seats and 5 rows are 30 rows of `add_cost_center`: show them as one table and save them after one yes.

## 6. Step 2: users, roles and access

### 6.1 Users (`add_user`)

| User name | Name | Role | Place |
|---|---|---|---|
| kino.owner | Owner (made in step 0) | Administrator | KINOFREIBURG |
| kino.steuerberater | Accountant (off-site tax adviser) | Finance | KINOFREIBURG |
| kino.kasse.frueh | Cashier, early shift | Cashier | TILL0 |
| kino.kasse.spaet | Cashier, late shift | Cashier | TILL1 |

Passwords are generated, saved to `kino-credentials.txt` and changed at the first sign-in.

The 4 workers, 2 per shift:
- Early (14:00–19:00): 1 cashier (POS seller: tickets and snacks) + 1 projectionist/usher.
- Late (19:00–23:30): 1 cashier (POS seller) + 1 projectionist/usher.

Only the two cashiers use the ERP. Users are not employees: never link them. The owner isn't one of the 4 workers, takes no wage, and sets the programme (the shows).

### 6.2 Menus and rights (`role_access`, then `set_role_access`)

| Role | Menu | Rights |
|---|---|---|
| Finance | Dashboard; Documents › Purchases, Cash desk, Bank, Journal, Recurring journal, Reversals; Reports › Trial balance, Profit and loss, Balance sheet, Account ledger, Client and supplier ledger, Open invoices, Ageing, VAT books, VAT return, VAT return by boxes | Documents of those categories: read all, write. Suppliers: read all. No till, no products, no prices |
| Cashier | Point of sale (the cinema's seat screen), POS shifts | Documents: Sales, Cash desk (read own, write) |

### 6.3 Document types and the till setting

- `set_document_type_users`: give role Finance the purchase invoice, supplier payments (bank and cash), journal entry, the recurring journal sheet (FKR) with its row type, and their reversal types. Read the codes with `document_types` first.
- `save_configuration_row`: the cinema's setting "Bills need an open shift" = No, because back-dated October bills can't have a shift. One live shift is shown at month end.

## 7. Step 3: partners (`register_setup`, then `save_register_row`, register `partners`)

| Name | Payment days | USt-IdNr. (placeholder) | Supplies |
|---|---|---|---|
| Filmverleih Demo GmbH (film distributor) | 30 | DE000000101 | The 3 films; weekly invoice: 47 % of each film's net ticket takings |
| Snack-Großhandel Demo GmbH (snack wholesaler) | 30 | DE000000102 | Popcorn corn, oil, salt, sugar, nachos, dip, bags, buckets, trays |
| Getränke Demo Breisgau GmbH (drinks) | 30 | DE000000103 | Cola, water, beer |
| Immobilien Demo Gerberau GmbH (landlord) | 0 | DE000000104 | Rent €2,200/month |
| Energie Demo AG (electricity) | 30 | DE000000105 | Electricity about €400/month (projector, sound, heating) |
| Wasser Demo Freiburg (water) | 30 | DE000000106 | Water about €60/month |
| Steuerberatung Demo (tax adviser) | 30 | DE000000107 | Fee €300/month |

All in category Suppliers, city Freiburg im Breisgau. Ticket buyers are billed to the company's general client.

## 8. Step 4: categories, types and units

| What | Proposal |
|---|---|
| Product categories | Eintrittskarten (tickets), Filmmiete (film rental), Snack-Zutaten und Verpackung (snack ingredients and packaging), Getränke Wiederverkauf (drinks for resale), Snacks (popcorn, nachos) |
| Product types | A type "Eintrittskarte" (unit piece, VAT 7 %); a type "Filmmiete" (a service bought, VAT 7 %); Goods for ingredients, packaging and drinks; a type "Snack" (unit piece) for the composite snacks |
| Units | kg and piece exist. **Add "l" (litre)** for the popcorn oil: the German pack has no litre unit |

## 9. Step 5: products (`save_register_row`, register `products`)

### 9.1 VAT (the German pack has 19 %, 7 % and 0 %)

| Goods | Expected rate |
|---|---|
| Cinema tickets | 7 % |
| Film rental from the distributor | 7 % |
| Popcorn and nachos sold at the counter | 7 % if sold as food to take into the auditorium, 19 % if counted as served on the premises: **ask the user (and the tax adviser)**; the plan uses 7 % |
| Drinks sold (cola, water, beer) | 19 % |
| Snack ingredients bought (corn, sugar, salt, nachos, dip) | 7 % |
| Oil, bags, buckets, trays, drinks bought, electricity, rent, tax adviser | 19 % (rent: only if the landlord opted for VAT, else 0 %: confirm) |
| Water bill | 7 % |

Show the user which VAT group each product gets before saving.

### 9.2 Tickets and film rental

| Code | Name | Category | Price |
|---|---|---|---|
| TIC-HAF | Ticket – "Der stille Hafen" (drama) | Eintrittskarten | €9.50 (Tuesday, Kinotag: €7.00) |
| TIC-RHE | Ticket – "Sommer am Rhein" (comedy) | Eintrittskarten | €9.50 (Tuesday: €7.00) |
| TIC-WAL | Ticket – "Das Waldhaus" (family film) | Eintrittskarten | €8.00 (Tuesday: €6.50) |
| FMI-MIE | Filmmiete (film rental, a service bought) | Filmmiete | Per invoice: 47 % of the film's net ticket takings |

The three films are fictional. One ticket product per film gives sales by film.

### 9.3 Snack ingredients and packaging (category Snack-Zutaten und Verpackung, type Goods)

| Code | Name | Unit | Purchase price (excl. VAT) |
|---|---|---|---|
| SNK-MAI | Popcornmais (popcorn corn) | kg | €2.80 |
| SNK-OEL | Kokosöl (coconut oil for popping) | l | €6.00 |
| SNK-SAL | Salz (salt) | kg | €0.80 |
| SNK-ZUC | Zucker (sugar) | kg | €1.10 |
| SNK-NAC | Nachos | kg | €6.50 |
| SNK-DIP | Käsedip (cheese dip) | kg | €7.00 |
| VPK-TUK | Popcorntüte klein (small bag) | piece | €0.06 |
| VPK-EIM | Popcorneimer groß (large bucket) | piece | €0.18 |
| VPK-SCH | Nachoschale (nacho tray) | piece | €0.10 |

### 9.4 Drinks for resale (category Getränke Wiederverkauf, type Goods, unit piece)

| Code | Name | Purchase price (excl. VAT) | Sale price (VAT incl.) |
|---|---|---|---|
| GET-COL | Cola 0.5 l | €0.65 | €4.00 |
| GET-WAS | Wasser 0.5 l (water) | €0.35 | €3.00 |
| GET-BIE | Bier 0.33 l (beer) | €0.80 | €4.50 |

## 10. Step 6: popcorn and nachos (composite, with recipes)

Each is a product of type "Snack", unit piece, **composite = yes**: a sale takes its recipe out of stock at cost. Recipes: `save_configuration_row`, model `product-recipes`, quantity per 1 piece, waste 0.

| Code | Snack | Recipe per piece | Sale price (VAT incl.) |
|---|---|---|---|
| SNA-POK | Popcorn klein, salzig oder süß (small) | Corn 0.040 kg, oil 0.010 l, salt 0.001 kg, sugar 0.004 kg, small bag 1 | €4.50 |
| SNA-POG | Popcorn groß (large) | Corn 0.080 kg, oil 0.020 l, salt 0.002 kg, sugar 0.008 kg, large bucket 1 | €6.50 |
| SNA-NAC | Nachos mit Käsedip (nachos with cheese dip) | Nachos 0.100 kg, cheese dip 0.050 kg, tray 1 | €5.00 |

After saving, show each snack's cost next to its price without VAT.

## 11. Step 7: prices, the till's menu and the shows

1. Sale prices (`save_configuration_row`, the sale-price model; read its columns first): the 3 tickets, 3 snacks and 3 drinks at the prices above, VAT included, unit piece, from 2026-10-01. The Tuesday price is given on Tuesday's lines (and on Tuesday's shows).
2. The till's sale menu: one menu for the cinema, open 14:00–23:30, in two groups: Tickets, and Snacks und Getränke. Both tills use it.
3. **Shows for the live demo** (`save_configuration_row`, model `pos-shows`, administrator): the next 3 days' shows from today, as in the programme below, each with Saal 1, the film's ticket product and the start time. October's past shows are not added: their tickets go in as bills (section 12.3).
4. Check with `unpaid_pos_bills` on TILL0 that the cinema's settings show nothing missing.

## 12. Simulation

Period: **Monday 12 to Sunday 25 October 2026** (two full weeks), month end on 31 October. Check first that October 2026 is not a closed period.

### 12.1 Opening (12 October)

| Document | Detail |
|---|---|
| Owner's capital | €15,000 into the bank (bank receipt against the owner's capital account of the German chart) |
| Till float | €150 from the bank into Kinokasse |

### 12.2 The programme

| Days | Shows | Week 1 (12–18 Oct) | Week 2 (19–25 Oct) |
|---|---|---|---|
| Monday–Friday | 17:30 and 20:15 | 17:30 Das Waldhaus, 20:15 Der stille Hafen | 17:30 Das Waldhaus, 20:15 Sommer am Rhein |
| Saturday, Sunday | 15:00, 17:30 and 20:15 | 15:00 Das Waldhaus, 17:30 Der stille Hafen, 20:15 Der stille Hafen | 15:00 Das Waldhaus, 17:30 Sommer am Rhein, 20:15 Sommer am Rhein |

That makes 32 shows: 20 on weekdays and 12 at the weekend. Shows starting before 19:00 are sold on the early till (TILL0); the 20:15 show on the late till (TILL1).

### 12.3 Every show: one bill

One bill per show (`save_draft_document` with the cinema's bill type; from the till, to the general client, the film and time in the bill's note), then `post_document`, then `pay_pos_bills` (cash and card) on the same till. The bill holds the tickets (the film's ticket × the people) and the snacks and drinks sold before that show.

| Show | People (of 25 seats) |
|---|---|
| Weekday 17:30 | 3–10 |
| Weekday 20:15 | 8–18 (Tuesday, Kinotag: 15–25) |
| Weekend 15:00 | 12–22 |
| Weekend 17:30 | 10–20 |
| Weekend 20:15 | 18–25 |

A show never has more than 25 tickets. About half the people buy a snack (small popcorn 40 %, large popcorn 35 %, nachos 25 %), and about 60 % buy a drink (cola 50 %, water 30 %, beer 20 %, beer only at 20:15).

Make a table of the 32 shows first (day, time, film, people, snacks, drinks, total) and show it before any bill. Bills are written by Claude as the owner, not as the cashiers.

### 12.4 Every week (Monday): purchase invoices

| Supplier | Week's goods (approx.) |
|---|---|
| Snack-Großhandel | Corn 6 kg, oil 1.5 l, salt 0.2 kg, sugar 0.5 kg, nachos 3 kg, cheese dip 1.5 kg, small bags 60, large buckets 50, trays 35 |
| Getränke Demo | Cola 72, water 48, beer 24 |

### 12.5 Every week (the following Monday): film rental

One purchase invoice from Filmverleih Demo per film shown that week, product Filmmiete, **47 % of that film's net ticket takings** (the week's ticket lines of the film without VAT, from `sales_lines`):

| Invoice | For |
|---|---|
| 19 October | Week 1: Der stille Hafen, Das Waldhaus |
| 26 October | Week 2: Sommer am Rhein, Das Waldhaus |

Show the calculation per film (tickets, net takings, 47 %) before saving.

### 12.6 Supplier payments

At the end of each week, pay the snack wholesaler and the drinks supplier by hand from the bank, **each payment against one invoice by its number**. Pay week 1's film rental invoices on 26 October, each against its invoice number. Leave week 2's film rental and the second week's snack invoice open, so open invoices show something.

### 12.7 Approval

Show each week's drafts as one group: purchases, film rental, the show bills, payments, with totals. Post only after a yes.

## 13. Month end (31 October)

The fixed monthly bills (rent, electricity, water, the tax adviser's fee) run on **two recurring journal sheets**: one books the costs at month end, the other pays them a few days later. Both are repeated each month with `repeat_document`, and each repeat is posted only on a yes. Nothing runs by itself.

1. **Recurring cost sheet**, 31 October 2026 (`save_journal_sheet`, type FKR, row type GJR, place KINOFREIBURG):

| Row | Debit | Credit |
|---|---|---|
| Miete (rent, Immobilien Demo Gerberau) | Rent expense €2,200 | Supplier Immobilien Demo Gerberau €2,200 |
| Strom (electricity, Energie Demo) | Electricity expense €400 | Supplier Energie Demo €400 |
| Wasser (water, Wasser Demo Freiburg) | Water expense €60 | Supplier Wasser Demo Freiburg €60 |
| Steuerberatung (tax adviser, Steuerberatung Demo) | Professional fees €300 | Supplier Steuerberatung Demo €300 |
| **Total** | **€2,960** | **€2,960** |

Use the German chart's accounts (names in German). VAT on these bills: if the sheet can't carry VAT, the four costs go in as purchase invoices instead and are paid one by one against each invoice number, not on a sheet. Decide with the user.

2. **Recurring payment sheet**, 5 November 2026 (`save_journal_sheet`, type FKR, row type GJR, place KINOFREIBURG): October's bills paid from the bank.

| Row | Debit | Credit |
|---|---|---|
| Rent paid | Supplier Immobilien Demo Gerberau €2,200 | Bank – Girokonto €2,200 |
| Electricity paid | Supplier Energie Demo €400 | Bank – Girokonto €400 |
| Water paid | Supplier Wasser Demo Freiburg €60 | Bank – Girokonto €60 |
| Tax adviser paid | Supplier Steuerberatung Demo €300 | Bank – Girokonto €300 |
| **Total** | **€2,960** | **€2,960** |

These rows clear each supplier's balance; they name no invoice, because the costs are sheet rows, not invoices.

3. **Repeat for November** (`repeat_document`, `post=false` for both): the cost sheet on 30 November 2026 and the payment sheet on 5 December 2026. Show both copies, and post them only on a yes. Change an amount on a copy (e.g. the real electricity bill) with `save_journal_sheet` before posting.
4. **Wages** of the 4 workers: one journal entry, 4 × €1,200 = €4,800 (wages expense against the bank; small cinemas often use part-time and mini-job contracts), not payroll.
5. **Stock count:** the ERP has no stock count document. Show the `stock` report (snack ingredients, packaging and drinks, with value) as the count, and list it as missing.
6. **Shift, live:** open a shift on TILL0 with `pos_shift` (€150 in the drawer) and close it with the cash counted. It is dated today, not October.
7. **Seat booking, live:** list today's shows with `shows` (added in step 7), book seats C3 and C4 at the 20:15 show for "Familie Weber" with `book_seats` (one posted bill: final), pay it with `pay_pos_bills`, and show the taken seats with `shows` and the show's id. Try booking C3 again from TILL1: it is refused ("A seat has just been taken"). Then book D1–D3 for another guest and cancel that booking with `book_seats` action cancel (its bill is reversed and the seats are free again). The user can watch the seat plan on http://127.0.0.1:8090.

Note: two weeks of shows against a full month of costs and wages will show a loss. If the user wants, put 50 % of the month's costs and wages instead. The payment sheet is dated 5 November, so October's balance sheet still shows the four bills as owed.

## 14. Reports to show at the end

| Report | Tool | Period |
|---|---|---|
| Trial balance | `trial_balance` | 1–31 October 2026 |
| Profit and loss | `profit_and_loss` | 1–31 October 2026 |
| Balance sheet | `balance_sheet` | 31 October 2026 |
| Stock of snack ingredients, packaging and drinks, with value | `stock` | 31 October |
| Tickets and takings by film | `sales_lines` (sales, by product) | 12–25 October |
| Film rental against takings, per film (what the cinema keeps) | Ticket lines minus the Filmmiete invoices | 12–25 October |
| Sales by shift (early vs late) | `sales_lines` by place (TILL0 vs TILL1) | 12–25 October |
| Occupancy: tickets sold of 800 seats offered (32 shows × 25) | From the ticket lines | 12–25 October |
| Snacks and drinks per visitor, and their gross margin | `sales_lines`, against the recipes' cost | 12–25 October |
| Open supplier invoices (week 2's film rental) | `open_items` | 31 October |
| Suppliers' balances for the monthly bills (owed on 31 October, zero after 5 November) | `account_ledger` on the supplier account | 31 October and 5 November |
| VAT return | `vat_return` | October 2026 |
| Missing / not possible | Section 15 | – |

## 15. Missing / not possible

| What | What is done instead |
|---|---|
| Booking seats on past shows | October's tickets are one bill per show; seats are booked live with `book_seats` on today's shows |
| Film rental worked out by the ERP (a percentage of a film's takings) | Claude works it out from the sales lines; the invoice is entered by hand |
| A stock count document | The `stock` report at month end is shown as the count |
| Opening a till shift on a past date | "Bills need an open shift" = No; one live shift is shown with `pos_shift` |
| Documents written as the cashiers | Claude writes them as the owner; the tills separate the shifts |
| The film levy (FFA-Abgabe) and the GEMA music licence | Not in this simulation: a cinema this small is usually below the levy's threshold; check with the tax adviser |
| German cash-register rules (TSE, the certified security device for each receipt) | Check the guide. If the ERP has none, the simulated bills are not KassenSichV receipts; list it |
| Payroll (part-time and mini-job contracts) | Wages are one journal entry |
| A litre unit in the German pack | Added in step 4 |

## 16. Order of work and approvals

| # | Step | Tools | Approval |
|---|---|---|---|
| 0 | New company and connector | `create-company` on the server, `.claude.json` | Yes first (can't be undone) |
| 1 | Reconnect, `list_workplaces` = KINOFREIBURG, company, bank, cash desk, cinema, Saal 1, 5 rows, 25 seats, tills, settings | `set_company_details`, `add_cost_center`, `save_configuration_row` | One yes for section 5 |
| 2 | Users, menus, rights, till setting | `add_user`, `set_role_access`, `set_document_type_users`, `save_configuration_row` | One yes for section 6 |
| 3 | Partners | `register_setup`, `save_register_row` | One yes for section 7 |
| 4 | Categories, types, the litre | `save_register_category`, `save_register_type`, `save_register_row` (units) | One yes |
| 5 | 19 products with VAT | `save_register_row` | One yes for section 9, with the VAT groups named |
| 6 | Popcorn and nachos and their recipes | `save_register_row`, `save_configuration_row` | One yes for section 10 |
| 7 | Prices, the till's menu, the next 3 days' shows | `save_configuration_row` | One yes |
| 8 | Opening | `save_draft_document`, `post_document` | Yes before posting (final) |
| 9 | The shows table, then week 1 and week 2: purchases, show bills, film rental, payments | `save_draft_document`, `post_document`, `pay_pos_bills`, `sales_lines` | Yes for the shows table, then per week before posting (final) |
| 10 | Month end: cost sheet (31 Oct), payment sheet (5 Nov), their November repeats (not posted), wages, stock, one live shift and live seat bookings | `save_journal_sheet`, `repeat_document`, journal, `stock`, `pos_shift`, `shows`, `book_seats`, `pay_pos_bills` | Yes before posting each sheet, each repeat and each journal |
| 11 | Reports and the missing list | report tools | – |
