# Gelateria Demo Torino: 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 ice cream shop in Turin in the local Gamma ERP, through Claude and the `gamma-erp-gelateria` connector. Each step lists what is created, with which tool, and what has to be checked before going on.

## 1. Where it runs

| Item | Value |
|---|---|
| ERP screens | http://127.0.0.1:8090 (also http://localhost:8090) |
| Claude connector | `gamma-erp-gelateria` → `http://127.0.0.1:8090/mcp`, signed in as `gelateria.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 | Gelateria Demo Torino, code `GELATORINO`, Italian pack, activity GENERAL |
| Credentials | `gelateria-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-gelateria__*` tools. Never another company's connector.
2. Call `list_workplaces` first. The workplace must be `GELATORINO`.
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. Production, unit splits, till payments and invoice runs 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 the stock, point-of-sale, accounting and users-and-rights pages).
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 14) and carry on.
8. Show draft documents in groups (one week at a time) and post them 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 "Gelateria Demo Torino" --code GELATORINO --country IT --username gelateria.owner --activity GENERAL
```

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

### 3. Connect Claude to the company

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

This adds the connector `gamma-erp-gelateria` 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 `GELATORINO`; `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 `gelateria.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-gelateria` 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 `GELATORINO`, 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 (the install section).
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 `gelateria-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 with `create-company`, connect `gamma-erp-gelateria` | To do: needs the user's yes (the company can't be undone) |
| 1 | Company details, bank, cash desk, shop, two tills, shop's till settings | To do |
| 2 | Users, roles, menus, rights, "bills need an open shift" = No | To do |
| 3 | Partners (7, water supplier included) | To do |
| 4 | Product categories, types and units | To do |
| 5 | Products: 14 ingredients, 7 packaging, 10 gelato flavours | To do |
| 6 | Recipes of the 10 flavours | To do |
| 7 | 60 counter items (flavour × size), composite, with recipes | To do (decision: 60 items, recommended) |
| 8 | Sale prices and the till's sale menu | To do |
| 9 | Opening: capital and till float | To do |
| 10 | Simulation, weeks 1 and 2 | To do |
| 11 | Month end | To do |
| 12 | Reports | To do |

### Step 1: company, money and places (`set_company_details`, `add_cost_center`, `save_configuration_row`)

| What | Code | Notes |
|---|---|---|
| Company details | GELATORINO | Trade name Gelateria Demo; address Via Roma, 10121 Torino (TO); Partita IVA placeholder |
| Banca – conto corrente | BANK0 | EUR, on the pack's bank account |
| Cassa negozio | CASH_DESK0 | EUR, on the pack's cash account |
| Negozio Via Roma (shop) | POS_SHOP0 | Phone and e-mail are placeholders |
| Cassa mattina (11–17) | TILL0 | Till under the shop |
| Cassa sera (17–23) | TILL1 | Till under the shop |
| Point-of-sale settings of the shop | – | Cash desk = Cassa negozio |

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

The owner is `gelateria.owner` (the administrator made in step 0). Step 2 adds three users and sets what each role sees.

### 4.1 Users (`add_user`)

| User name | Name | Role | Place | Password |
|---|---|---|---|---|
| gelateria.contabile | Accountant (off-site) | Finance | GELATORINO | Generated, saved to the credentials file, changed at first sign-in |
| gelateria.cassa.mattina | POS seller, morning | Cashier | TILL0 Cassa mattina | Same |
| gelateria.cassa.sera | POS seller, evening | Cashier | TILL1 Cassa sera | Same |

The two other workers (gelato maker and server) get no user. Users are not employees: never link them.

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

Read each role with `role_access` first, then set the whole list.

| Role | Menu (screens) | 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: Purchases, Cash desk, Bank, Journal, Recurring journal, Reversals (read all, write). Partners: Suppliers (read all). No till, no products, no prices |
| Cashier | Point of sale, POS shifts (already given by the role) | Documents: Sales, Cash desk (read own, write) |

### 4.3 Document types for the accountant (`set_document_type_users`)

Give role Finance: purchase invoice, supplier payment (bank and cash), journal entry, recurring journal sheet (FKR) and its row type, and their reversal types. Read the exact codes with `document_types` first.

### 4.4 Till setting (`save_configuration_row`)

Shop's point-of-sale setting "Bills need an open shift" = No. A shift can only be opened now, in real time, so back-dated October bills could not be posted otherwise. Shifts are still shown once, live, at month end (section 12).

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

Read `register_setup` for partners first: the types (e.g. LTD) and the property codes (TAX_NUMBER, CITY…).

| Name | Category | Type | Payment days | City | Tax number | What they supply |
|---|---|---|---|---|---|---|
| Caseificio Demo Torino Srl | Suppliers | LTD | 30 | Torino | IT00000000011 (placeholder) | Milk, cream |
| Ingrosso Alimentare Demo Srl | Suppliers | LTD | 30 | Torino | IT00000000022 (placeholder) | Sugar, powders, pastes, chocolate, packaging |
| Ortofrutta Demo Porta Palazzo | Suppliers | LTD | 0 (cash on delivery) | Torino | IT00000000033 (placeholder) | Strawberries, lemons |
| Immobiliare Demo Via Roma Srl | Suppliers | LTD | 0 | Torino | IT00000000044 (placeholder) | Rent €1,800/month |
| Energia Demo SpA | Suppliers | LTD | 30 | Torino | IT00000000055 (placeholder) | Electricity about €450/month |
| Acqua Demo Torino SpA | Suppliers | LTD | 30 | Torino | IT00000000077 (placeholder) | Water about €60/month |
| Studio Contabile Demo | Suppliers | LTD | 30 | Torino | IT00000000066 (placeholder) | Accountant's fee €250/month |

Counter sales go to the company's general (walk-in) client, which exists by default. The till never names a customer.

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

Read `register_setup` for products and units first. Use what the Italian pack has, and add only what is missing (`save_register_category`, `save_register_type`).

| What | Proposal |
|---|---|
| Product categories | Ingredienti (ingredients), Imballaggi (packaging), Gelato (finished gelato), Banco (counter items) |
| Product types | Goods for ingredients and packaging; a type "Gelato" (VAT group for gelato, unit kg); a type "Banco" (VAT group for gelato, unit piece) |
| Units | kg, l (litre: add it if the pack has none), piece |
| Unit conversions | Not needed: each product is bought and used in one unit |

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

### 7.1 VAT groups

Read the Italian pack's VAT groups (`register_setup` products → `vatGroups`). Use these rates unless the pack says otherwise, and tell the user which group is used for each:

| Goods | Expected rate |
|---|---|
| Milk, fresh fruit (strawberries, lemons) | 4 % |
| Gelato sold at the counter, cream, sugar, dextrose, milk powder, egg yolks, cocoa, chocolate, pastes, coffee, stabiliser | 10 % |
| Packaging (cones, cups, spoons, boxes), electricity | 22 % (electricity for a business: check the pack) |
| Water | 10 % |
| Rent of the shop | 22 %, or exempt if the landlord does not charge VAT: confirm |
| Accountant's fee | 22 % |

### 7.2 Ingredients (category Ingredienti, type Goods)

| Code | Name | Unit | Purchase price (excl. VAT) | Supplier |
|---|---|---|---|---|
| ING-LAT | Latte intero (whole milk) | l | €1.10 | Caseificio |
| ING-PAN | Panna (cream) | l | €4.20 | Caseificio |
| ING-ZUC | Zucchero (sugar) | kg | €1.10 | Ingrosso |
| ING-DES | Destrosio (dextrose) | kg | €2.20 | Ingrosso |
| ING-LPM | Latte in polvere magro (skimmed milk powder) | kg | €3.50 | Ingrosso |
| ING-TUO | Tuorli d'uovo (egg yolks) | kg | €7.50 | Ingrosso |
| ING-CAC | Cacao (cocoa) | kg | €9.00 | Ingrosso |
| ING-CFN | Cioccolato fondente (dark chocolate) | kg | €12.00 | Ingrosso |
| ING-PNO | Pasta di nocciola Piemonte (hazelnut paste) | kg | €28.00 | Ingrosso |
| ING-PPI | Pasta di pistacchio (pistachio paste) | kg | €45.00 | Ingrosso |
| ING-CAF | Caffè (coffee) | kg | €18.00 | Ingrosso |
| ING-FRA | Fragole (strawberries) | kg | €5.50 | Ortofrutta |
| ING-LIM | Limoni (lemons) | kg | €2.50 | Ortofrutta |
| ING-STA | Stabilizzante (stabiliser) | kg | €18.00 | Ingrosso |

### 7.3 Packaging (category Imballaggi, type Goods, unit piece)

| Code | Name | Purchase price (excl. VAT) |
|---|---|---|
| IMB-CON | Cono (cone) | €0.08 |
| IMB-CPS | Coppetta piccola (small cup) | €0.05 |
| IMB-CPM | Coppetta media (medium cup) | €0.07 |
| IMB-CPG | Coppetta grande (large cup) | €0.09 |
| IMB-CUC | Cucchiaino (spoon) | €0.02 |
| IMB-V05 | Vaschetta 500 g (500 g box) | €0.35 |
| IMB-V10 | Vaschetta 1 kg (1 kg box) | €0.50 |

### 7.4 Gelato (category Gelato, type Gelato, unit kg, made in house)

| Code | Flavour |
|---|---|
| GEL-FDL | Fior di latte |
| GEL-CIO | Cioccolato |
| GEL-GIA | Gianduja |
| GEL-NOC | Nocciola Piemonte |
| GEL-PIS | Pistacchio |
| GEL-STR | Stracciatella |
| GEL-CRE | Crema |
| GEL-CAF | Caffè |
| GEL-FRA | Fragola |
| GEL-LIM | Limone |

## 8. Step 6: recipes of the flavours (`save_configuration_row`, model `product-recipes`)

One row per ingredient. The product is the gelato in kg, and each quantity is **per 1 kg** of gelato: the batch figures below divided by 5. Waste 2 % on every row. Only an administrator writes recipes.

Quantities for one **5 kg batch**:

| Flavour | Milk l | Cream l | Sugar | Dextrose | Milk powder | Stabiliser | Flavour ingredients |
|---|---|---|---|---|---|---|---|
| Fior di latte | 3.10 | 0.90 | 0.75 | 0.15 | 0.25 | 0.025 | – |
| Crema | 2.80 | 0.80 | 0.80 | 0.10 | 0.20 | 0.020 | Egg yolks 0.35 |
| Cioccolato | 2.70 | 0.50 | 0.80 | 0.15 | 0.20 | 0.020 | Cocoa 0.30, dark chocolate 0.30 |
| Gianduja | 2.80 | 0.60 | 0.70 | 0.10 | 0.20 | 0.020 | Hazelnut paste 0.35, cocoa 0.15, dark chocolate 0.15 |
| Nocciola Piemonte | 2.95 | 0.60 | 0.70 | 0.15 | 0.20 | 0.020 | Hazelnut paste 0.45 |
| Pistacchio | 2.95 | 0.60 | 0.70 | 0.15 | 0.20 | 0.020 | Pistachio paste 0.45 |
| Stracciatella | 2.90 | 0.85 | 0.70 | 0.15 | 0.25 | 0.025 | Dark chocolate 0.30 |
| Caffè | 3.00 | 0.80 | 0.80 | 0.15 | 0.25 | 0.025 | Coffee 0.08 |
| Fragola (sorbet) | – | – | 0.95 | 0.25 | – | 0.030 | Strawberries 2.60, lemons 0.15 |
| Limone (sorbet) | – | – | 1.20 | 0.25 | – | 0.030 | Lemons 1.30 |

Water in the sorbets is not stocked, so it is not a recipe row. After saving, check each flavour with `calculate_production` (5 kg) and show the cost per kg.

## 9. Step 7: counter items (60), composite

The user's decision: one item per flavour and size, so sales and margin by flavour come straight from the ERP.

- Category Banco, type Banco, unit piece, **composite = yes**: a sale takes the gelato and the packaging out of stock at cost, instead of the item itself.
- Code `<flavour>-<size>`, e.g. `PIS-M` "Pistacchio – coppa media".
- Each item's recipe (`product-recipes`, quantity per 1 piece, waste 0):

| Size | Code end | Gelato (of the flavour) | Packaging | Price at the counter (VAT incl.) |
|---|---|---|---|---|
| Cone | -CON | 0.10 kg | 1 cone | €3.00 |
| Small cup | -S | 0.10 kg | 1 small cup + 1 spoon | €3.00 |
| Medium cup | -M | 0.15 kg | 1 medium cup + 1 spoon | €4.00 |
| Large cup | -L | 0.20 kg | 1 large cup + 1 spoon | €5.00 |
| 500 g box | -500 | 0.50 kg | 1 box 500 g | €12.00 |
| 1 kg box | -1K | 1.00 kg | 1 box 1 kg | €22.00 |

That is 10 flavours × 6 sizes = 60 items and 60 × 2–3 = about 160 recipe rows. Save them in groups (one flavour at a time) after one yes for the whole table.

## 10. Step 8: prices and the till's sale menu

1. Sale prices (`save_configuration_row`, the sale-price model; read its columns with `read_configuration` first): each counter item at the price above, VAT included, unit piece, from 2026-10-01.
2. The till's sale menu (sale menus in the configuration): one menu for the shop, open 11:00–23:00, grouped by flavour, with the 60 items. Both tills use the shop's menu.
3. Check with `unpaid_pos_bills` on TILL0 that the shop's settings show nothing missing (bill type, payment type, cash desk, walk-in client).

## 11. Simulation

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

### 11.1 Opening (12 October)

| Document | Detail |
|---|---|
| Owner's capital | €5,000 into Banca – conto corrente (bank receipt against the owner's capital account of the Italian chart) |
| Till float | €200 from the bank into Cassa negozio (transfer) |

### 11.2 Every week (Monday)

1. **Purchase invoices** (`save_draft_document`, purchase type), one per supplier, with the supplier's own invoice number as the external number:

| Supplier | Week's goods (approx.) |
|---|---|
| Caseificio | Milk 450 l, cream 120 l |
| Ingrosso | Sugar 130 kg, dextrose 25 kg, milk powder 35 kg, egg yolks 8 kg, cocoa 10 kg, dark chocolate 20 kg, hazelnut paste 25 kg, pistachio paste 25 kg, coffee 2 kg, stabiliser 4 kg; cones 600, small cups 500, medium cups 400, large cups 250, spoons 1,200, 500 g boxes 60, 1 kg boxes 30 |
| Ortofrutta | Strawberries 25 kg, lemons 20 kg (cash on delivery: paid the same day from Cassa negozio) |

2. **Production** (`calculate_production`, then `produce` at POS_SHOP0), as the owner records the morning maker's work. About 180 kg a week in 5 kg batches, before the week's sales:

| Flavour | Batches a week | kg |
|---|---|---|
| Pistacchio | 6 | 30 |
| Nocciola Piemonte | 6 | 30 |
| Stracciatella | 5 | 25 |
| Fior di latte | 3 | 15 |
| Cioccolato | 3 | 15 |
| Gianduja | 3 | 15 |
| Crema | 3 | 15 |
| Fragola | 3 | 15 |
| Limone | 2 | 10 |
| Caffè | 2 | 10 |

Production is final and is not reversed: show the week's batches first.

### 11.3 Every day: counter sales

One bill per till per day (`save_draft_document` with the shop's bill type; from the till, to the general client), then `post_document`, then `pay_pos_bills` (cash, a few by card) on the same till.

| Day | Total sales (VAT incl.) | Morning (TILL0) | Evening (TILL1) |
|---|---|---|---|
| Monday–Friday | €450–700 | about 40 % | about 60 % |
| Saturday, Sunday | €900–1,300 | about 40 % | about 60 % |

The mix by flavour, per bill: pistachio, nocciola and stracciatella about 15 % each; fior di latte, cioccolato, gianduja and crema about 9 % each; fragola about 8 %; limone and caffè about 5–6 % each. By size: cones 25 %, small 20 %, medium 30 %, large 15 %, boxes 10 % (more boxes at the weekend). Round to whole items; a bill's total should land inside the day's range.

Bills are written by Claude as the owner, not as the sellers: note that the "by user" sales lists then show the owner.

### 11.4 Supplier payments

At the end of each week, pay the dairy and the wholesaler by hand from the bank, **each payment against one invoice by its number** (Payment document, as in `pay_invoices`). The fruit supplier is paid in cash on the delivery day. Leave the second week's dairy and wholesaler invoices open, so open invoices show something.

### 11.5 Approval

Show each week's drafts as one group: purchases, productions, 14 bills, payments, with totals. Post only after a yes.

## 12. Month end (31 October)

The fixed monthly bills (rent, electricity, water, accountant'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 GELATORINO):

| Row | Debit | Credit |
|---|---|---|
| Rent (Immobiliare Demo) | Rent expense €1,800 | Supplier Immobiliare Demo €1,800 |
| Electricity (Energia Demo) | Electricity expense €450 | Supplier Energia Demo €450 |
| Water (Acqua Demo) | Water expense €60 | Supplier Acqua Demo €60 |
| Accountant's fee (Studio Contabile) | Professional fees €250 | Supplier Studio Contabile €250 |
| **Total** | **€2,560** | **€2,560** |

Use the Italian chart's accounts (names stay in Italian). VAT on these costs: if the sheet can't carry VAT, the four costs go in as purchase invoices instead (then the payments are made one by one against each invoice number, not on a sheet), and the sheet holds the net amounts only. Decide with the user.

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

| Row | Debit | Credit |
|---|---|---|
| Rent paid (Immobiliare Demo) | Supplier Immobiliare Demo €1,800 | Banca – conto corrente €1,800 |
| Electricity paid (Energia Demo) | Supplier Energia Demo €450 | Banca – conto corrente €450 |
| Water paid (Acqua Demo) | Supplier Acqua Demo €60 | Banca – conto corrente €60 |
| Accountant paid (Studio Contabile) | Supplier Studio Contabile €250 | Banca – conto corrente €250 |
| **Total** | **€2,560** | **€2,560** |

These rows clear each supplier's balance; they name no invoice, because the costs are sheet rows, not invoices. After posting, the four suppliers' balances are zero and the bank is €2,560 lower.

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 the copy (e.g. the real electricity bill) with `save_journal_sheet` before posting.
4. **Wages** of the 4 workers: one journal entry, 4 × €1,450 = €5,800 (wages expense against the bank), not payroll.
5. **Stock count:** the ERP has no stock count document. Show the `stock` report (ingredients and gelato, with value) as the count, and list it as missing.
6. **Shifts, live once:** open a shift on TILL0 with `pos_shift` (€200 in the drawer), close it with the cash counted, to show the cash-up. It is dated today, not October.

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

## 13. 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 ingredients and gelato, with value | `stock` | 31 October |
| Sales by flavour and by size | `sales_lines` (sales, by product) | 12–25 October |
| Sales by shift (morning vs evening) | `sales_lines` by place (TILL0 vs TILL1) | 12–25 October |
| Gross margin per flavour | Sales lines minus the cost of the gelato and packaging the composite items took out | 12–25 October |
| Open supplier invoices | `open_items` | 31 October |
| Suppliers' balances (rent, electricity, water, accountant: owed on 31 October, zero after the 5 November payment sheet) | `account_ledger` on the supplier account | 31 October and 5 November |
| VAT return | `vat_return` | October 2026 |
| Missing / not possible | Section 14 | – |

## 14. Missing / not possible

| What | What is done instead |
|---|---|
| A stock count document (count and differences) | 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 sellers | Claude writes them as the owner; the tills separate the shifts |
| A shift cost centre on a bill | The two tills (TILL0, TILL1) replace it |
| Payroll | Wages are one journal entry |
| Water as an ingredient of sorbets | Not stocked, not in the recipes |
| Lookup properties on a new type | Added on the register's Set up screen, if ever needed |

## 15. Order of work and approvals

| # | Step | Tools | Approval |
|---|---|---|---|
| 1 | Reconnect, check tools, `list_workplaces` = GELATORINO | – | – |
| 2 | Users, menus, rights, till setting | `add_user`, `set_role_access`, `set_document_type_users`, `save_configuration_row` | One yes for the table in section 4 |
| 3 | Partners | `register_setup`, `save_register_row` | One yes for section 5 |
| 4 | Categories, types, units | `save_register_category`, `save_register_type` | One yes |
| 5 | 31 products with VAT groups | `save_register_row` | One yes for section 7, with the VAT groups named |
| 6 | 10 flavour recipes, cost per kg shown | `save_configuration_row`, `calculate_production` | One yes |
| 7 | 60 counter items and their recipes | `save_register_row`, `save_configuration_row` | One yes |
| 8 | Prices and the till's menu | `save_configuration_row` | One yes |
| 9 | Opening | `save_draft_document`, `post_document` | Yes before posting (final) |
| 10 | Week 1, then week 2 | purchases, `produce`, bills, `pay_pos_bills`, payments | Yes per week before posting (final) |
| 11 | Month end: cost sheet (31 Oct), payment sheet (5 Nov), their November repeats (not posted), wages, stock, one live shift | `save_journal_sheet`, `repeat_document`, journal, `stock`, `pos_shift` | Yes before posting each sheet and each repeat |
| 12 | Reports and the missing list | report tools | – |
