# Pizzeria Demo Napoli: 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 pizzeria in Naples in the local Gamma ERP, through Claude and a connector for the pizzeria's own company. It follows the same logic as the gelateria and bar plans (`GELATERIA-SIMULATION-PLAN.md`, `BAR-TIRANA-SIMULATION-PLAN.md`): one step at a time, a table before every change, a yes before every change and before every posting.

How a pizza moves stock:
- **The dough is produced** every morning: an "Impasto" product in kg, from its recipe (flour, salt, yeast), with a Production document.
- **Each pizza is a composite item.** Its recipe takes a 250 g dough ball plus its toppings, so a sale takes them out of stock at cost.
- **A takeaway pizza** is the same pizza with a box added to its recipe.
- **Drinks** are bought and resold as they are; the coffee is made cup by cup.

## 1. Where it runs

| Item | Value |
|---|---|
| ERP screens | http://127.0.0.1:8090 (also http://localhost:8090) |
| Claude connector (new) | `gamma-erp-pizzeria` → `http://127.0.0.1:8090/mcp`, signed in as `pizzeria.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 | Pizzeria Demo Napoli, code `PIZZANAPOLI`, Italian pack, currency EUR |
| Credentials | `pizzeria-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-pizzeria__*` tools.
2. Call `list_workplaces` first. The workplace must be `PIZZANAPOLI`.
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, till payments and invoice runs post at once, and a production is never reversed. 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, production, recipes, 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 15) and carry on.
8. Show draft documents in groups (one week at a time) and post them only after a yes.
9. The Italian chart keeps its account names in Italian.

## 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 "Pizzeria Demo Napoli" --code PIZZANAPOLI --country IT --username pizzeria.owner --activity GENERAL
```

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

### 3. Connect Claude to the company

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

This adds the connector `gamma-erp-pizzeria` 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 `PIZZANAPOLI`; `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 `pizzeria.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-pizzeria` 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 `PIZZANAPOLI`, 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 `pizzeria-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-pizzeria` added | To do: needs the user's yes (it can't be undone) |
| 1 | Company details, bank, cash desk, the pizzeria, two tills, till settings | To do |
| 2 | Users, roles, menus, rights, "bills need an open shift" = No | To do |
| 3 | Partners (10) | To do |
| 4 | Product categories, types and units (add the litre) | To do |
| 5 | Products: 24 ingredients, 1 packaging, 3 drinks for resale, the dough | To do |
| 6 | The dough's recipe | To do |
| 7 | 21 menu items (10 pizzas at the table, 10 takeaway, coffee), composite, with recipes | To do |
| 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, with the recurring cost and payment sheets | To do |
| 12 | 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`, which makes the company, its administrator and its first Claude token. 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 "Pizzeria Demo Napoli" --code PIZZANAPOLI --country IT --username pizzeria.owner --activity GENERAL` |
| 2 | First password and first Claude token | Printed once. Save them to `pizzeria-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-pizzeria` 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 Italian pack (chart, documents, posting rules, VAT, production, the till, stock).

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

| What | Code | Detail |
|---|---|---|
| Company details (`set_company_details`) | PIZZANAPOLI | Trade name Pizzeria Demo; address Via dei Tribunali, 80138 Napoli (NA), Italia; Partita IVA IT00000000101 (placeholder); phone and e-mail placeholders |
| Bank account (`add_cost_center`, BANK) | BANK0 | "Banca – conto corrente", EUR, on the pack's bank account |
| Cash desk (`add_cost_center`, CASH_DESK) | CASH_DESK0 | "Cassa pizzeria", EUR, on the pack's cash account |
| The pizzeria, a point of sale | POS_PIZ0 | "Pizzeria Demo – Via dei Tribunali", where stock is kept and the dough is made |
| Lunch till | TILL0 | "Cassa pranzo (11:30–16:00)", under the pizzeria |
| Dinner till | TILL1 | "Cassa cena (18:30–23:30)", under the pizzeria |
| Point-of-sale settings (`save_configuration_row`) | – | Cash desk = Cassa pizzeria; walk-in client = the general client; payment method Cash |

Open 7 days. Two shifts: lunch 11:30–16:00 and dinner 18:30–23:30. Tables are left out: each shift's sales go on its till's bill.

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

### 6.1 Users (`add_user`)

| User name | Name | Role | Place |
|---|---|---|---|
| pizzeria.owner | Owner (made in step 0) | Administrator | PIZZANAPOLI |
| pizzeria.contabile | Accountant (off-site) | Finance | PIZZANAPOLI |
| pizzeria.cassa.pranzo | POS seller, lunch | Cashier | TILL0 |
| pizzeria.cassa.cena | POS seller, dinner | Cashier | TILL1 |

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

The 4 workers, 2 per shift:
- Lunch: 1 POS seller (also serves) + 1 pizzaiolo.
- Dinner: 1 POS seller (also serves) + 1 pizzaiolo.

Only the two POS sellers use the ERP. Users are not employees: never link them. The owner isn't one of the 4 workers, takes no wage, and records the morning dough production in the ERP.

### 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, 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 pizzeria'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 | Partita IVA (placeholder) | Supplies |
|---|---|---|---|
| Molino Demo Napoli Srl (flour mill) | 30 | IT00000000111 | Flour 00, fresh yeast, salt |
| Caseificio Demo Campania Srl (dairy) | 15 | IT00000000122 | Fior di latte, mozzarella di bufala, ricotta, provola |
| Ingrosso Alimentare Demo Napoli Srl (food wholesaler) | 30 | IT00000000133 | Tomatoes, oil, cured meats, olives, artichokes, gorgonzola, parmigiano, oregano, coffee, sugar, pizza boxes |
| Ortofrutta Demo Porta Nolana (greengrocer) | 0 (cash on delivery) | IT00000000144 | Basil, garlic, mushrooms, grilled vegetables, friarielli |
| Bevande Demo Srl (drinks) | 30 | IT00000000155 | Water, Coca-Cola, beer |
| Legnami Demo (firewood for the oven) | 0 (cash on delivery) | IT00000000166 | Firewood, weekly |
| Immobiliare Demo Tribunali Srl (landlord) | 0 | IT00000000177 | Rent €2,500/month |
| Energia Demo SpA (electricity) | 30 | IT00000000188 | Electricity about €900/month |
| Acqua Demo Napoli SpA (water) | 30 | IT00000000199 | Water about €80/month |
| Studio Contabile Demo Napoli (accountant) | 30 | IT00000000200 | Fee €300/month |

All in category Suppliers, city Napoli. Counter sales go to the company's general client.

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

| What | Proposal |
|---|---|
| Product categories | Ingredienti, Imballaggi, Semilavorati (the dough), Bevande per rivendita (drinks for resale), Menu (pizzas and coffee) |
| Product types | Goods for ingredients, packaging and drinks; a type "Semilavorato" (unit kg) for the dough; a type "Menu" (unit piece, VAT 10 %) for the pizzas and coffee |
| Units | kg and piece exist. **Add "l" (litre)**: the Italian pack has no litre unit |

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

### 9.1 VAT (the Italian pack has 22 %, 10 %, 5 %, 4 % and exempt)

| Goods | Expected rate |
|---|---|
| Pizzas and drinks served (somministrazione), coffee | 10 % |
| Flour, cheeses, fresh vegetables, basil, olive oil, tomatoes | 4 % |
| Fresh yeast, salt, cured meats, olives, artichokes, oregano, coffee beans, sugar | 10 % |
| Drinks bought for resale, pizza boxes, firewood, electricity, accountant | 22 % (firewood and electricity for a business: check the pack) |
| Water | 10 % |
| Rent of the premises | 22 %, or exempt if the landlord does not charge VAT: confirm |

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

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

| Code | Name | Unit | Purchase price (excl. VAT) | Supplier |
|---|---|---|---|---|
| ING-FAR | Farina 00 (flour) | kg | €0.90 | Molino |
| ING-LIE | Lievito di birra fresco (fresh yeast) | kg | €4.00 | Molino |
| ING-SAL | Sale (salt) | kg | €0.40 | Molino |
| ING-POM | Pomodori pelati San Marzano (peeled tomatoes) | kg | €2.60 | Ingrosso |
| ING-FDL | Fior di latte | kg | €7.50 | Caseificio |
| ING-BUF | Mozzarella di bufala | kg | €13.00 | Caseificio |
| ING-RIC | Ricotta | kg | €5.00 | Caseificio |
| ING-PRO | Provola affumicata | kg | €10.00 | Caseificio |
| ING-GOR | Gorgonzola | kg | €11.00 | Ingrosso |
| ING-PAR | Parmigiano Reggiano | kg | €18.00 | Ingrosso |
| ING-OLI | Olio extravergine d'oliva (olive oil) | l | €8.50 | Ingrosso |
| ING-BAS | Basilico (basil) | kg | €20.00 | Ortofrutta |
| ING-AGL | Aglio (garlic) | kg | €5.00 | Ortofrutta |
| ING-ORI | Origano (oregano) | kg | €18.00 | Ingrosso |
| ING-SAP | Salame piccante | kg | €16.00 | Ingrosso |
| ING-PCO | Prosciutto cotto | kg | €14.00 | Ingrosso |
| ING-FUN | Funghi champignon (mushrooms) | kg | €4.00 | Ortofrutta |
| ING-CAR | Carciofini (artichokes) | kg | €9.00 | Ingrosso |
| ING-OLV | Olive nere (black olives) | kg | €7.00 | Ingrosso |
| ING-VER | Verdure grigliate (grilled vegetables) | kg | €8.00 | Ortofrutta |
| ING-SLS | Salsiccia (sausage) | kg | €10.00 | Ingrosso |
| ING-FRI | Friarielli | kg | €6.00 | Ortofrutta |
| ING-CAF | Caffè in grani (coffee beans) | kg | €18.00 | Ingrosso |
| ING-ZUC | Zucchero (sugar) | kg | €1.10 | Ingrosso |

### 9.3 Packaging and drinks for resale (unit piece)

| Code | Name | Category | Purchase price (excl. VAT) | Sale price (VAT incl.) | Supplier |
|---|---|---|---|---|---|
| IMB-CAR | Cartone pizza 33 cm (pizza box) | Imballaggi | €0.25 | – (in the takeaway pizza) | Ingrosso |
| BEV-ACQ | Acqua 0.5 l (water) | Bevande per rivendita | €0.30 | €2.00 | Bevande |
| BEV-COK | Coca-Cola 0.33 l | Bevande per rivendita | €0.55 | €3.00 | Bevande |
| BEV-BIR | Birra 0.33 l (beer) | Bevande per rivendita | €0.70 | €4.00 | Bevande |

### 9.4 The dough (category Semilavorati, type Semilavorato, unit kg)

| Code | Name |
|---|---|
| SEM-IMP | Impasto per pizza (pizza dough) |

## 10. Step 6: the dough's recipe (`save_configuration_row`, model `product-recipes`)

Per **1 kg** of dough, waste 2 %:

| Ingredient | Quantity |
|---|---|
| Farina 00 | 0.590 kg |
| Sale | 0.015 kg |
| Lievito di birra fresco | 0.002 kg |

Water (about 0.39 l per kg) is not stocked, so it is not a recipe row. Check with `calculate_production` (25 kg) and show the cost per kg.

## 11. Step 7: menu items (composite, with recipes)

Each item is a product of type "Menu", unit piece, **composite = yes**: a sale takes its recipe's dough, toppings and box out of stock at cost. Recipes: `save_configuration_row`, model `product-recipes`, quantity per 1 piece, waste 0.

### 11.1 The 10 pizzas (code `PIZ-<name>` at the table, `PIZ-<name>-ASP` takeaway)

| Pizza | Recipe per pizza (kg, oil in l) | Price (VAT incl.) |
|---|---|---|
| Margherita | Dough 0.25, tomatoes 0.08, fior di latte 0.10, basil 0.002, oil 0.01 | €7.00 |
| Marinara | Dough 0.25, tomatoes 0.10, garlic 0.005, oregano 0.001, oil 0.015 | €6.00 |
| Diavola | Margherita + salame piccante 0.05 | €8.50 |
| Capricciosa | Margherita + prosciutto cotto 0.04, mushrooms 0.04, artichokes 0.03, olives 0.015 | €9.50 |
| Quattro formaggi | Dough 0.25, fior di latte 0.06, gorgonzola 0.03, provola 0.04, parmigiano 0.02, oil 0.01 | €9.50 |
| Prosciutto e funghi | Margherita + prosciutto cotto 0.05, mushrooms 0.05 | €9.00 |
| Bufalina | Dough 0.25, tomatoes 0.08, mozzarella di bufala 0.12, basil 0.002, oil 0.01 | €10.00 |
| Ortolana | Margherita + grilled vegetables 0.12 | €8.50 |
| Salsiccia e friarielli | Dough 0.25, fior di latte 0.10, sausage 0.07, friarielli 0.07, oil 0.01 | €9.50 |
| Calzone | Dough 0.28, ricotta 0.08, salame piccante 0.04, fior di latte 0.06, tomatoes 0.03 | €9.00 |

"Margherita +" means the Margherita's rows plus the ones named, written out in full on each item's recipe.

The **takeaway** version of each pizza (`-ASP`, "da asporto") has the same rows plus 1 pizza box, at the same price. That makes 20 pizza items.

### 11.2 Coffee

| Code | Item | Recipe | Price (VAT incl.) |
|---|---|---|---|
| MEN-CAF | Caffè espresso | Coffee beans 0.007 kg, sugar 0.005 kg | €1.20 |

After saving, show each item's cost (recipe at purchase prices, the dough at its produced cost) next to its price without VAT.

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

1. Sale prices (`save_configuration_row`, the sale-price model; read its columns first): the 21 menu items and 3 drinks at the prices above, VAT included, unit piece, from 2026-10-01.
2. The till's sale menu: one menu for the pizzeria, open 11:30–23:30, in three groups, Pizze, Pizze da asporto, and Bevande e caffè. Both tills use it.
3. Check with `unpaid_pos_bills` on TILL0 that the settings show nothing missing.

## 13. 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.

### 13.1 Opening (12 October)

| Document | Detail |
|---|---|
| Owner's capital | €10,000 into the bank (bank receipt against the owner's capital account of the Italian chart) |
| Till float | €300 from the bank into Cassa pizzeria |

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

One purchase invoice per supplier (`save_draft_document`), with the supplier's own invoice number as the external number:

| Supplier | Week's goods (approx.) |
|---|---|
| Molino | Flour 155 kg, fresh yeast 0.6 kg, salt 4 kg (the week's 250 kg of dough) |
| Caseificio | Fior di latte 55 kg, mozzarella di bufala 9 kg, ricotta 4 kg, provola 3 kg (two deliveries a week) |
| Ingrosso | Tomatoes 55 kg, olive oil 8 l, salame piccante 4 kg, prosciutto cotto 6 kg, artichokes 1.5 kg, olives 1 kg, gorgonzola 1.5 kg, parmigiano 1.5 kg, oregano 0.2 kg, sausage 3 kg, coffee beans 2 kg, sugar 2 kg, pizza boxes 250 |
| Ortofrutta | Basil 1.5 kg, garlic 0.5 kg, mushrooms 6 kg, grilled vegetables 5 kg, friarielli 3 kg (paid in cash on delivery) |
| Bevande | Water 400, Coca-Cola 250, beer 300 |
| Legnami | Firewood for the oven (e.g. 300 kg at €0.25/kg = €75), booked as a cost (account line), paid in cash |

### 13.3 Every morning: the dough (production)

The owner records the day's dough with `calculate_production`, then `produce` at POS_PIZ0, before the day's bills:

| Day | Dough | Dough balls (250 g) |
|---|---|---|
| Monday–Friday | 30 kg | about 120 |
| Saturday, Sunday | 50 kg | about 200 |

That makes 14 Production documents. They are posted at once and never reversed, so show each week's seven productions first. Dough left at night stays in stock and is used the next day.

### 13.4 Every day: sales

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

| Day | Total sales (VAT incl.) | Lunch (TILL0) | Dinner (TILL1) |
|---|---|---|---|
| Monday–Friday | €700–1,200 | about 35 % | about 65 % |
| Saturday, Sunday | €1,600–2,400 | about 30 % | about 70 % |

The mix of pizzas: Margherita 30 %, Diavola 12 %, Marinara 8 %, Capricciosa 8 %, Salsiccia e friarielli 8 %, Bufalina 8 %, Prosciutto e funghi 8 %, Quattro formaggi 7 %, Ortolana 5 %, Calzone 6 %. About 20 % of pizzas are takeaway (more at dinner and at the weekend). About 1 drink per pizza (water 40 %, beer 35 %, Coca-Cola 25 %) and coffee after 30 % of the lunch pizzas.

Round to whole items, so each bill's total lands inside the day's range. Bills are written by Claude as the owner, not as the sellers. A bill can't take more dough than the morning's production and what is left in stock: keep the dough balls sold below what was produced.

### 13.5 Supplier payments

At the end of each week, pay the mill, the dairy, the wholesaler and the drinks supplier by hand from the bank, **each payment against one invoice by its number**. The greengrocer and the firewood are paid in cash from Cassa pizzeria on delivery. Leave the second week's mill, wholesaler and drinks invoices open, so open invoices show something.

### 13.6 Approval

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

## 14. 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 PIZZANAPOLI):

| Row | Debit | Credit |
|---|---|---|
| Affitto (rent, Immobiliare Demo Tribunali) | Rent expense €2,500 | Supplier Immobiliare Demo Tribunali €2,500 |
| Energia elettrica (electricity, Energia Demo) | Electricity expense €900 | Supplier Energia Demo €900 |
| Acqua (water, Acqua Demo Napoli) | Water expense €80 | Supplier Acqua Demo Napoli €80 |
| Contabilità (accountant, Studio Contabile Demo Napoli) | Professional fees €300 | Supplier Studio Contabile Demo Napoli €300 |
| **Total** | **€3,780** | **€3,780** |

Use the Italian chart's accounts (names in Italian). 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 PIZZANAPOLI): October's bills paid from the bank.

| Row | Debit | Credit |
|---|---|---|
| Rent paid | Supplier Immobiliare Demo Tribunali €2,500 | Banca – conto corrente €2,500 |
| Electricity paid | Supplier Energia Demo €900 | Banca – conto corrente €900 |
| Water paid | Supplier Acqua Demo Napoli €80 | Banca – conto corrente €80 |
| Accountant paid | Supplier Studio Contabile Demo Napoli €300 | Banca – conto corrente €300 |
| **Total** | **€3,780** | **€3,780** |

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,600 = €6,400 (wages expense against the bank), not payroll.
5. **Stock count:** the ERP has no stock count document. Show the `stock` report (ingredients, dough, boxes and drinks, with value) as the count, and list it as missing.
6. **Shifts, live once:** open a shift on TILL0 with `pos_shift` (€300 in the drawer) and 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 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.

## 15. 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, dough, boxes and drinks, with value | `stock` | 31 October |
| Sales by pizza, at the table vs takeaway | `sales_lines` (sales, by product) | 12–25 October |
| Sales by shift (lunch vs dinner) | `sales_lines` by place (TILL0 vs TILL1) | 12–25 October |
| Gross margin per pizza | Sales lines minus the cost of the dough, toppings and box each sale took out | 12–25 October |
| Cost of the dough per kg, per day | The 14 Production documents (`list_documents`, Production) | 12–25 October |
| Open supplier invoices | `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 16 | – |

## 16. Missing / not possible

| What | What is done instead |
|---|---|
| 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 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 |
| Tables and waiters' orders | Left out: each shift's sales go on its till's bill |
| A litre unit in the Italian pack | Added in step 4 |
| Water in the dough | Not stocked, not in the recipe |
| Italian electronic receipts (scontrino elettronico / registratore telematico) | Check the guide. If the ERP has none, the simulated bills are not fiscal receipts; list it |

## 17. 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` = PIZZANAPOLI, company, bank, cash desk, pizzeria, tills, till 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 | 29 products with VAT | `save_register_row` | One yes for section 9, with the VAT groups named |
| 6 | The dough's recipe, cost per kg shown | `save_configuration_row`, `calculate_production` | One yes |
| 7 | 21 menu items and their recipes | `save_register_row`, `save_configuration_row` | One yes for section 11 |
| 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, the daily dough, bills, payments | 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 | – |
