# Kapnopoleio Demo Athina: 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 tobacco shop (καπνοπωλείο) in Athens, Greece, in the local Gamma ERP, through Claude and a connector for the shop's own company. It follows the same logic as the other 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 tobacco shop:
- **Tobacco has a fixed retail price** set by law, printed on the pack, VAT included. The shop earns a fixed share of it: the distributor sells to the shop at the retail price less the shop's margin. Margins are small, so the shop also sells drinks, snacks, lighters and the press.
- **Newspapers and magazines come on sale-or-return.** The press distributor delivers every day and invoices weekly, and the unsold copies go back to it each Saturday. In the ERP that return is a **partial reversal** of the week's purchase invoice, by the quantities returned.
- **Everything is resold as bought:** no production, no recipes, no lots.
- **The shop is open long hours, 7 days,** in two shifts.

## 1. Where it runs

| Item | Value |
|---|---|
| ERP screens | http://127.0.0.1:8090 (also http://localhost:8090) |
| Claude connector (new) | `gamma-erp-kapno` → `http://127.0.0.1:8090/mcp`, signed in as `kapno.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 | Kapnopoleio Demo Athina, code `KAPNOATH`, Greek pack, currency EUR |
| Credentials | `kapno-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-kapno__*` tools (or the same server over HTTP, see the install section).
2. Call `list_workplaces` first. The workplace must be `KAPNOATH`.
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 (shop, paying, shifts), documents (reversing, payments and open invoices), stock, 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 Greek chart keeps its account names in Greek. Product and partner names may be in Greek, with the English in brackets in the tables shown to the user.

## 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 "Kapnopoleio Demo Athina" --code KAPNOATH --country GR --username kapno.owner --activity GENERAL
```

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

### 3. Connect Claude to the company

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

This adds the connector `gamma-erp-kapno` 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 `KAPNOATH`; `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 `kapno.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-kapno` 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 `KAPNOATH`, 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 `kapno-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 the ERP if needed, make the company with `create-company`, connect `gamma-erp-kapno` | To do: needs the user's yes (the company can't be undone) |
| 1 | Company details, bank, cash desk, the shop, two tills, settings | To do |
| 2 | Users, roles, menus, rights, "bills need an open shift" = No | To do |
| 3 | Partners (8) | To do |
| 4 | Product categories and types | To do |
| 5 | Products: tobacco (10), press (4), drinks and snacks (6), accessories (2) | To do |
| 6 | Sale prices and the till's sale menu | To do |
| 7 | Opening: capital, till float, first stock | To do |
| 8 | Simulation, weeks 1 and 2 (with the press returns) | To do |
| 9 | Month end, with the recurring cost and payment sheets | To do |
| 10 | Reports | To do |

## 4. Step 0: the new company

Follow "Install the ERP and run everything in one go" above: it installs the ERP if it isn't running, and makes the company with:

`create-company --company "Kapnopoleio Demo Athina" --code KAPNOATH --country GR --username kapno.owner --activity GENERAL`

Activity GENERAL loads the whole Greek pack (chart, documents, posting rules, VAT, reversals, the till, stock).

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

| What | Code | Detail |
|---|---|---|
| Company details (`set_company_details`) | KAPNOATH | Trade name Kapnopoleio Demo (Καπνοπωλείο Demo); address Odos Athinas, 10551 Athina, Ellada; ΑΦΜ 000000000 (placeholder); phone and e-mail placeholders |
| Bank account (`add_cost_center`, BANK) | BANK0 | "Τράπεζα – τρεχούμενος λογαριασμός" (bank, current account), EUR, on the pack's bank account |
| Cash desk (`add_cost_center`, CASH_DESK) | CASH_DESK0 | "Ταμείο καταστήματος" (shop cash desk), EUR, on the pack's cash account |
| The shop, a point of sale of kind Shop (`add_cost_center`, POS_SHOP) | POS_KAPNO0 | "Kapnopoleio Demo – Odos Athinas": it holds all the stock |
| Morning till (TILL) | TILL0 | "Ταμείο πρωί (07:00–15:00)" (morning till), under the shop |
| Evening till (TILL) | TILL1 | "Ταμείο απόγευμα (15:00–23:00)" (evening till), under the shop |
| The shop's point-of-sale settings (`save_configuration_row`) | – | Screen Shop; cash desk = the shop cash desk; walk-in client = the general client; payment method Cash |

Open 7 days, 07:00–23:00, in two shifts.

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

### 6.1 Users (`add_user`)

| User name | Name | Role | Place |
|---|---|---|---|
| kapno.owner | Owner (made in step 0) | Administrator | KAPNOATH |
| kapno.logistis | Accountant (λογιστής, off-site) | Finance | KAPNOATH |
| kapno.tameio.proi | Seller, morning | Cashier | TILL0 |
| kapno.tameio.apogevma | Seller, evening | Cashier | TILL1 |

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

The 4 workers, 2 per shift:
- Morning 07:00–15:00: 1 seller (POS: the till) + 1 assistant (receives the press and the deliveries, fills the shelves and the fridge).
- Evening 15:00–23:00: 1 seller (POS) + 1 assistant (counts the unsold press on Saturday, closes the shop).

Only the two 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 purchases and the press returns 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.
- `document_type_settings`: check that the purchase invoice type **allows partial reversal** (needed for the press returns). If it doesn't, show it to the user before changing it.
- `save_configuration_row`: the shop'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 | ΑΦΜ (placeholder) | Supplies |
|---|---|---|---|
| Kapnemporiki Demo AE (tobacco distributor) | 7 | 000000001 | Cigarettes, rolling tobacco, cigars, heated tobacco, papers, filters |
| Praktoreio Typou Demo AE (press distributor) | 7 (weekly invoice, less the returns) | 000000002 | Newspapers and magazines, daily, on sale-or-return |
| Chondremporio Demo EPE (drinks and snacks wholesaler) | 30 | 000000003 | Water, soft drinks, chocolate, crisps, chewing gum |
| Aksesouar Demo (smoking accessories) | 30 | 000000004 | Lighters, matches |
| Akinita Demo Athinas AE (landlord) | 0 | 000000005 | Rent €1,400/month |
| Energeia Demo AE (electricity) | 30 | 000000006 | Electricity about €180/month (fridge, lights) |
| EYDAP Demo (water) | 30 | 000000007 | Water about €25/month |
| Logistiko Grafeio Demo (accountant) | 30 | 000000008 | Fee €180/month |

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

## 8. Step 4: categories and types

| What | Proposal |
|---|---|
| Product categories | Καπνικά (tobacco), Τύπος (press), Αναψυκτικά και σνακ (drinks and snacks), Αξεσουάρ (accessories) |
| Product types | Goods for everything; one type per category so each takes its VAT group (tobacco, accessories 24 %; press 6 %; drinks and snacks 13 % or 24 %, see below) |
| Units | Piece exists. Tobacco is bought and sold by the pack (a carton of 10 packs is entered as 10 packs) |

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

### 9.1 VAT (the Greek pack has 24 %, 13 %, 6 % and 0 %)

| Goods | Expected rate |
|---|---|
| Cigarettes, tobacco, cigars, heated tobacco, papers, filters, lighters, matches | 24 % |
| Newspapers and magazines | 6 % |
| Bottled water, snacks, chocolate | 13 % |
| Soft drinks | 13 % or 24 %: check with the user |
| Rent, electricity, accountant | 24 % (rent of a shop: check if the landlord charges VAT); water 13 % |

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

### 9.2 Tobacco (category Καπνικά, unit pack): the brand names are made up

The retail price is fixed and includes VAT 24 %. The cost is the retail price without VAT, less the shop's margin of about 10 %.

| Code | Name | Cost (excl. VAT) | Retail price (VAT incl.) |
|---|---|---|---|
| KAP-AER | Aegean Red 20 (cigarettes) | €3.63 | €5.00 |
| KAP-AEB | Aegean Blue 20 | €3.63 | €5.00 |
| KAP-OLG | Olympos Gold 20 | €3.41 | €4.70 |
| KAP-DSL | Delta Slims 20 | €3.70 | €5.10 |
| KAP-KYM | Kyma Menthol 20 | €3.56 | €4.90 |
| KAP-HEA | Heat Demo sticks 20 (heated tobacco) | €3.63 | €5.00 |
| KAP-STR | Stripa Demo 30 g (rolling tobacco) | €4.50 | €6.20 |
| KAP-POU | Pouri Demo 5 (small cigars) | €5.81 | €8.00 |
| KAP-PAP | Χαρτάκια (rolling papers) | €0.45 | €0.80 |
| KAP-FIL | Φιλτράκια (filters) | €0.55 | €1.00 |

### 9.3 Press (category Τύπος, unit piece, on sale-or-return)

| Code | Name | Cost (excl. VAT) | Price (VAT incl.) |
|---|---|---|---|
| TYP-EFH | Εφημερίδα Demo (daily newspaper) | €1.10 | €1.50 |
| TYP-EFS | Κυριακάτικη Demo (Sunday newspaper, with supplements) | €2.20 | €3.00 |
| TYP-ATH | Αθλητική Demo (sports daily) | €0.95 | €1.30 |
| TYP-PER | Περιοδικό Demo (weekly magazine) | €2.60 | €3.50 |

### 9.4 Drinks, snacks and accessories (unit piece)

| Code | Name | Category | Cost (excl. VAT) | Price (VAT incl.) |
|---|---|---|---|---|
| ANA-NER | Νερό 0.5 l (water) | Αναψυκτικά και σνακ | €0.18 | €0.50 |
| ANA-COL | Cola 0.33 l | Αναψυκτικά και σνακ | €0.50 | €1.50 |
| ANA-SOK | Σοκολάτα (chocolate bar) | Αναψυκτικά και σνακ | €0.55 | €1.50 |
| ANA-PAT | Πατατάκια (crisps) | Αναψυκτικά και σνακ | €0.60 | €1.60 |
| ANA-TSI | Τσίχλες (chewing gum) | Αναψυκτικά και σνακ | €0.40 | €1.20 |
| ANA-KRO | Κρουασάν συσκευασμένο (packed croissant) | Αναψυκτικά και σνακ | €0.45 | €1.20 |
| AKS-ANA | Αναπτήρας (lighter) | Αξεσουάρ | €0.35 | €1.00 |
| AKS-SPI | Σπίρτα (matches) | Αξεσουάρ | €0.10 | €0.40 |

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

1. Sale prices (`save_configuration_row`, the sale-price model; read its columns first): every product at its retail price, VAT included, unit piece (pack), from 2026-10-01. Tobacco prices are fixed: never discounted.
2. The till's sale menu: one menu for the shop, open 07:00–23:00, in groups Τσιγάρα (cigarettes), Καπνός και αξεσουάρ (tobacco and accessories), Τύπος (press) and Αναψυκτικά και σνακ (drinks and snacks). Both tills use it.
3. Check with `unpaid_pos_bills` on TILL0 that the shop's settings show nothing missing.

## 11. Step 7: opening and first stock (12 October)

| Document | Detail |
|---|---|
| Owner's capital | €8,000 into the bank (bank receipt against the owner's capital account of the Greek chart) |
| Till float | €200 from the bank into the shop cash desk |
| First stock of tobacco (purchase invoice, Kapnemporiki Demo) | Aegean Red 200, Aegean Blue 150, Olympos Gold 150, Delta Slims 80, Kyma Menthol 80, Heat Demo sticks 100, rolling tobacco 40, small cigars 15, papers 60, filters 60 (packs) |
| First stock of drinks and snacks (Chondremporio Demo) | Water 240, cola 120, chocolate 80, crisps 60, chewing gum 80, packed croissants 40 |
| First stock of accessories (Aksesouar Demo) | Lighters 150, matches 100 |

## 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 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, some card) on the same till.

| Day | Total sales (VAT incl.) | Morning (TILL0) | Evening (TILL1) |
|---|---|---|---|
| Monday–Friday | €900–1,400 | about 55 % | about 45 % |
| Saturday, Sunday | €1,000–1,500 | about 45 % | about 55 % |

The mix by revenue: cigarettes and heated tobacco 72 %, rolling tobacco, cigars, papers and filters 6 %, press 8 % (more on Sunday: the Sunday paper), drinks and snacks 11 %, lighters and matches 3 %. Within cigarettes: Aegean Red 30 %, Olympos Gold 20 %, Aegean Blue 18 %, Heat Demo 14 %, Delta Slims 9 %, Kyma Menthol 9 %. Morning sells most of the press; the evening sells more drinks and snacks.

Bills are written by Claude as the owner, not as the sellers.

### 12.2 Purchases

| When | Supplier | Goods (approx.) |
|---|---|---|
| Monday and Thursday | Kapnemporiki Demo | Refills what sold since the last delivery (show the stock first), e.g. Aegean Red 180, Olympos Gold 120, Aegean Blue 110, Heat Demo 90, Delta Slims 55, Kyma Menthol 55, plus rolling tobacco, papers and filters |
| Every day (one invoice per week, dated Saturday) | Praktoreio Typou Demo | Daily newspaper 40 a day, sports daily 20 a day, Sunday newspaper 30 (Sunday only), weekly magazine 25 (Wednesday) |
| Monday | Chondremporio Demo | Refills the drinks and snacks |
| When needed | Aksesouar Demo | Lighters and matches |

### 12.3 Saturday: the press returns (partial reversal)

Every Saturday evening the unsold copies of the week go back to the press distributor:

1. Count what was received (the week's press invoice) less what was sold (the week's bills): that is what is returned, about 30–40 % of the daily papers and 20 % of the magazines.
2. Reverse the week's press invoice **by those quantities** (`reverse_document` with the line quantities, dated Saturday). This is final; show the quantities and the amount first.
3. The press distributor's balance is then the invoice less the returns, and the stock of press is back to zero.

### 12.4 Supplier payments

- The tobacco distributor and the press distributor are paid every Monday for the week before, by hand from the bank, **each payment against one invoice by its number** (for the press: the invoice less its reversal).
- The drinks wholesaler and the accessories firm are paid at 30 days: their invoices stay open in October.

### 12.5 Approval

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

## 13. Month end (31 October)

The fixed monthly bills (rent, electricity, water, the 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 KAPNOATH):

| Row | Debit | Credit |
|---|---|---|
| Ενοίκιο (rent, Akinita Demo Athinas) | Rent expense €1,400 | Supplier Akinita Demo Athinas €1,400 |
| Ρεύμα (electricity, Energeia Demo) | Electricity expense €180 | Supplier Energeia Demo €180 |
| Νερό (water, EYDAP Demo) | Water expense €25 | Supplier EYDAP Demo €25 |
| Λογιστής (accountant, Logistiko Grafeio Demo) | Professional fees €180 | Supplier Logistiko Grafeio Demo €180 |
| **Total** | **€1,785** | **€1,785** |

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

| Row | Debit | Credit |
|---|---|---|
| Rent paid | Supplier Akinita Demo Athinas €1,400 | Bank, current account €1,400 |
| Electricity paid | Supplier Energeia Demo €180 | Bank, current account €180 |
| Water paid | Supplier EYDAP Demo €25 | Bank, current account €25 |
| Accountant paid | Supplier Logistiko Grafeio Demo €180 | Bank, current account €180 |
| **Total** | **€1,785** | **€1,785** |

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 × €950 = €3,800 (wages expense against the bank), not payroll.
5. **Stock count:** the ERP has no stock count document. Show the `stock` report (tobacco by brand, drinks, snacks, accessories, with value; the press should be zero after the last return) as the count, and list it as missing.
6. **Live, on today's date:** open a shift on TILL0 with `pos_shift` (€200 in the drawer) and close it with the cash counted.

Note: tobacco's margin is small, so the result depends mostly on volume. Two weeks of sales against a full month of costs and wages may 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 by product, with value | `stock` | 31 October |
| Sales by group (tobacco, press, drinks and snacks, accessories) and by brand | `sales_lines` (sales, by product) | 12–25 October |
| Gross margin by group: tobacco's small margin against the press and the snacks | Sales lines against the purchase prices (`report` purchase-prices) | 12–25 October |
| Press: received, sold, returned, by title | The press invoices, their reversals and the sales lines | 12–25 October |
| Sales by shift (morning vs evening) | `sales_lines` by place (TILL0 vs TILL1) | 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 (24 %, 13 %, 6 %) | `vat_return` | October 2026 |
| Missing / not possible | Section 15 | – |

## 15. Missing / not possible

| What | What is done instead |
|---|---|
| Tobacco tax stamps (the banderole on each pack) and excise records | Not in the ERP; the excise is inside the distributor's price |
| An age check (18+) at the till | Not in the ERP; the seller checks |
| Prepaid phone cards and transport tickets sold on commission | Not simulated: they are an agent's sale (only the commission is income); list it if the user wants them |
| Lottery and betting (OPAP) | Not in the ERP |
| 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 |
| Greek e-books (myDATA) and the till's fiscal link to the tax office (AADE) | Check the guide. If the ERP has none, the simulated bills are not myDATA records; list it |
| Payroll | Wages are one journal entry |

## 16. Order of work and approvals

| # | Step | Tools | Approval |
|---|---|---|---|
| 0 | Install if needed, new company and connector | `docker compose`, `create-company`, `claude mcp add` | Yes first (the company can't be undone) |
| 1 | `list_workplaces` = KAPNOATH, company, bank, cash desk, shop, tills, settings | `set_company_details`, `add_cost_center`, `save_configuration_row` | One yes for section 5 |
| 2 | Users, menus, rights, partial reversal on purchases, till setting | `add_user`, `set_role_access`, `set_document_type_users`, `document_type_settings`, `save_configuration_row` | One yes for section 6 |
| 3 | Partners | `register_setup`, `save_register_row` | One yes for section 7 |
| 4 | Categories and types | `save_register_category`, `save_register_type` | One yes |
| 5 | 22 products with VAT | `save_register_row` | One yes for section 9, with the VAT groups named |
| 6 | Prices and the till's menu | `save_configuration_row` | One yes |
| 7 | Opening and the first stock | `save_draft_document`, `post_document` | Yes before posting (final) |
| 8 | Week 1, then week 2: bills, purchases, the press return, payments | `save_draft_document`, `post_document`, `pay_pos_bills`, `reverse_document` | Yes per week before posting (final) |
| 9 | 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, each repeat and each journal |
| 10 | Reports and the missing list | report tools | – |
