# Hôtel Demo Annecy: 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 hotel with 5 rooms in Annecy, France, in the local Gamma ERP, through Claude and a connector for the hotel's own company. It follows the same logic as the gelateria, bar and pizzeria 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 hotel:
- **Rooms are places.** The hotel is a point of sale of the kind Hotel, with floors and rooms under it.
- **A night is a product** ("Nuitée"), composite: each night sold takes a welcome kit (soap, shower gel, shampoo) out of stock.
- **Breakfast is a composite item** that takes its croissant, bread, butter, jam, coffee, milk and juice out of stock.
- **Drinks** at the small bar and from the minibar are bought and resold as they are, or poured by the glass (wine).
- **The tourist tax** (taxe de séjour) is collected on each bill and paid to the town at month end.

**Stays and dates.** Stays (book, check in, extend, check out) work on real dates: a check-in records today and a check-out bills today. So October's nights go in as bills on each room, and real stays are run live by Claude with `stays` and `stay` at the end (section 13, item 7).

## 1. Where it runs

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

## 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 "Hôtel Demo Annecy" --code HOTELANNECY --country FR --username hotel.owner --activity GENERAL
```

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

### 3. Connect Claude to the company

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

This adds the connector `gamma-erp-hotel` 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 `HOTELANNECY`; `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 `hotel.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-hotel` 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 `HOTELANNECY`, 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 `hotel-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-hotel` added | To do: needs the user's yes (it can't be undone) |
| 1 | Company details, bank, cash desk, the hotel, floors, 5 rooms, two reception tills, the hotel's 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: breakfast ingredients, welcome kit, drinks, the tourist tax | To do |
| 6 | The night, breakfast and wine by the glass: composite, with recipes | To do |
| 7 | Sale prices, the night product in the hotel's settings, the tourist tax's posting | To do |
| 8 | Opening: capital and till float | To do |
| 9 | Simulation, weeks 1 and 2 | To do |
| 10 | Month end, with the recurring cost and payment sheets | To do |
| 11 | Reports | To do |

## 4. Step 0: the new company

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

| # | Action | Detail |
|---|---|---|
| 1 | Run `create-company` in the `gamma-erp-erp-1` container | `--company "Hôtel Demo Annecy" --code HOTELANNECY --country FR --username hotel.owner --activity GENERAL` |
| 2 | First password and first Claude token | Printed once. Save them to `hotel-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-hotel` 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 French pack (chart, documents, posting rules, VAT, the till, stays, stock).

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

| What | Code | Detail |
|---|---|---|
| Company details (`set_company_details`) | HOTELANNECY | Trade name Hôtel Demo; address Rue Sainte-Claire, 74000 Annecy, France; TVA FR00000000000 and SIRET 00000000000000 (placeholders); phone and e-mail placeholders |
| Bank account (`add_cost_center`, BANK) | BANK0 | "Banque – compte courant", EUR, on the pack's bank account |
| Cash desk (`add_cost_center`, CASH_DESK) | CASH_DESK0 | "Caisse réception", EUR, on the pack's cash account |
| The hotel, a point of sale of kind Hotel (`add_cost_center`, POS_STAYS) | POS_HOTEL0 | "Hôtel Demo – Rue Sainte-Claire"; it also holds the stock (breakfast, kits, drinks) |
| Floor 1 (FLOOR) | FLOOR1 | "1er étage", under the hotel |
| Floor 2 (FLOOR) | FLOOR2 | "2e étage", under the hotel |
| Rooms (ROOM), with their beds property | ROOM101, ROOM102, ROOM103 | "Chambre 101/102/103", double, 2 beds, under Floor 1 |
| | ROOM201, ROOM202 | "Chambre 201/202", superior, 2 beds, under Floor 2 |
| Morning reception till (TILL) | TILL0 | "Réception matin (07–15)", under the hotel |
| Evening reception till (TILL) | TILL1 | "Réception soir (15–23)", under the hotel |
| The hotel's point-of-sale settings (`save_configuration_row`) | – | Screen Hotel (stays); cash desk = Caisse réception; walk-in client = the general client; payment method Cash; "A night is sold as" = the night product (set in step 7, once it exists) |

Reception is open 07:00–23:00, in two shifts. Read the room type's properties first with `register_setup` (cost-centres) to give each room its beds.

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

### 6.1 Users (`add_user`)

| User name | Name | Role | Place |
|---|---|---|---|
| hotel.owner | Owner (made in step 0) | Administrator | HOTELANNECY |
| hotel.comptable | Accountant (off-site) | Finance | HOTELANNECY |
| hotel.reception.matin | Receptionist, morning | Cashier | TILL0 |
| hotel.reception.soir | Receptionist, evening | Cashier | TILL1 |

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

The 4 workers, 2 per shift:
- Morning: 1 receptionist (POS seller: check-outs, breakfast) + 1 housekeeper (rooms, breakfast room).
- Evening: 1 receptionist (POS seller: check-ins, bar, minibar) + 1 night porter/bar.

Only the two receptionists use the ERP. Users are not employees: never link them. The owner isn't one of the 4 workers and takes no wage.

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

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

### 6.3 Document types and the till setting

- `set_document_type_users`: give role Finance the purchase invoice, supplier payments (bank and cash), journal entry, the recurring journal sheet (FKR) with its row type, and their reversal types. Read the codes with `document_types` first.
- `save_configuration_row`: the hotel'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 | TVA (placeholder) | Supplies |
|---|---|---|---|
| Boulangerie Demo Annecy (bakery) | 0 (cash on delivery) | FR00000000101 | Croissants, baguettes, daily |
| Grossiste Alimentaire Demo Savoie (food wholesaler) | 30 | FR00000000102 | Butter, jam, coffee, milk, orange juice, sugar |
| Boissons Demo Alpes (drinks) | 30 | FR00000000103 | Water, soft drinks, beer, wine |
| Hygiène Demo (welcome kits) | 30 | FR00000000104 | Welcome kits (soap, shower gel, shampoo) |
| Blanchisserie Demo Lac (laundry) | 30 | FR00000000105 | Sheets and towels washed, weekly invoice |
| SCI Demo Sainte-Claire (landlord) | 0 | FR00000000106 | Rent €3,500/month (commercial lease) |
| Énergie Demo SA (electricity) | 30 | FR00000000107 | Electricity about €700/month |
| Eau Demo Annecy (water) | 30 | FR00000000108 | Water about €250/month |
| Cabinet Comptable Demo (accountant) | 30 | FR00000000109 | Fee €350/month |
| Commune d'Annecy – taxe de séjour (the town) | 0 | – | Receives the tourist tax collected each month |

All in category Suppliers, city Annecy. Guests are billed to the company's general client, with the guest's name on the bill.

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

| What | Proposal |
|---|---|
| Product categories | Ingrédients petit-déjeuner (breakfast ingredients), Produits d'accueil (welcome kits), Boissons revente (drinks for resale), Hébergement et services (nights, breakfast, glass of wine), Taxes collectées (collected taxes) |
| Product types | Goods for ingredients, kits and drinks; a type "Hébergement" (unit night = piece, VAT 10 %); a type "Service" for breakfast and the glass of wine; a type "Taxe collectée" (VAT 0 %) |
| Units | kg and piece exist. **Add "l" (litre)**: the French pack has no litre unit |

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

### 9.1 VAT (the French pack has 20 %, 10 %, 5.5 %, 2.1 % and 0 %)

| Goods | Expected rate |
|---|---|
| Nights (hébergement) and breakfast | 10 % |
| Soft drinks and water served | 10 % |
| Beer and wine served | 20 % |
| Bread, croissants, butter, jam, coffee, milk, juice, sugar bought | 5.5 % |
| Drinks bought for resale (soft drinks, beer, wine) | 5.5 % for soft drinks and water, 20 % for alcohol |
| Welcome kits, laundry, electricity, accountant, rent (commercial lease) | 20 % |
| Water bill | 5.5 % |
| Tourist tax | 0 % (not VAT: collected for the town) |

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

### 9.2 Breakfast ingredients (category Ingrédients petit-déjeuner, type Goods)

| Code | Name | Unit | Purchase price (excl. VAT) | Supplier |
|---|---|---|---|---|
| ING-CRO | Croissant | piece | €0.60 | Boulangerie |
| ING-BAG | Baguette | piece | €1.00 | Boulangerie |
| ING-BEU | Beurre (butter) | kg | €9.00 | Grossiste |
| ING-CON | Confiture (jam) | kg | €6.00 | Grossiste |
| ING-CAF | Café en grains (coffee beans) | kg | €18.00 | Grossiste |
| ING-LAI | Lait (milk) | l | €1.10 | Grossiste |
| ING-JUS | Jus d'orange (orange juice) | l | €2.20 | Grossiste |
| ING-SUC | Sucre (sugar) | kg | €1.20 | Grossiste |

### 9.3 Welcome kit and drinks (unit piece, wine in litres)

| Code | Name | Category | Purchase price (excl. VAT) | Sale price (VAT incl.) | Supplier |
|---|---|---|---|---|---|
| ACC-KIT | Kit d'accueil (soap, shower gel, shampoo) | Produits d'accueil | €1.20 | – (in the night) | Hygiène Demo |
| BOI-EAU | Eau 0.5 l (water) | Boissons revente | €0.40 | €3.00 | Boissons Demo |
| BOI-SOD | Soda 0.33 l | Boissons revente | €0.60 | €4.00 | Boissons Demo |
| BOI-BIE | Bière 0.33 l (beer) | Boissons revente | €0.90 | €6.00 | Boissons Demo |
| BOI-VIN | Vin de Savoie (white wine, by the litre: bottles of 0.75 l) | Boissons revente | €10.00 per l | – (by the glass) | Boissons Demo |

### 9.4 The tourist tax (category Taxes collectées, type Taxe collectée, VAT 0 %)

| Code | Name | Unit | Price |
|---|---|---|---|
| TAX-SEJ | Taxe de séjour (per person per night) | piece | €1.50 |

The tax is not the hotel's income: it must post to a liability account owed to the town (step 7).

## 10. Step 6: the night, breakfast and wine by the glass (composite, with recipes)

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

| Code | Item | Type | Recipe per piece | Sale price (VAT incl.) |
|---|---|---|---|---|
| HEB-NUI | Nuitée (one night in a room) | Hébergement | 1 welcome kit | €95 double; €130 superior (price given on the line) |
| SER-PDJ | Petit-déjeuner (breakfast, per person) | Service | Croissant 1, baguette 0.25, butter 0.02 kg, jam 0.03 kg, coffee 0.015 kg, milk 0.10 l, orange juice 0.20 l, sugar 0.01 kg | €14.00 |
| SER-VIN | Verre de vin de Savoie (glass of wine) | Service | Wine 0.15 l | €7.00 |

One night product serves all rooms: the ERP's hotel setting takes one product for a night, and the price per room is given on each line (as a stay gives its own price).

## 11. Step 7: prices and settings

1. Sale prices (`save_configuration_row`, the sale-price model; read its columns first): night €95 (VAT incl.), breakfast €14, glass of wine €7, water €3, soda €4, beer €6, tourist tax €1.50, from 2026-10-01.
2. The hotel's setting "A night is sold as" = HEB-NUI (`save_configuration_row`, point-of-sale settings).
3. **The tourist tax's posting**: read the posting scenarios (`read_configuration`, scenarios and their lines) for sales lines. Propose a scenario for the type "Taxe collectée" that posts the tax to a liability account of the French chart owed to the town (e.g. under 447 / other taxes payable), not to income. If the configuration can't route one product type to its own account, list it as missing, and book the tax at month end with a journal from income to the liability instead.
4. Check with `unpaid_pos_bills` on TILL0 that the hotel's settings show nothing missing.

## 12. Simulation

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

### 12.1 Opening (12 October)

| Document | Detail |
|---|---|
| Owner's capital | €20,000 into the bank (bank receipt against the owner's capital account of the French chart) |
| Till float | €200 from the bank into Caisse réception |

### 12.2 Occupancy and stays

October is the low season in Annecy:

| Nights | Rooms taken (of 5) | Guests per room |
|---|---|---|
| Sunday to Thursday | 2–3 | 1–2 |
| Friday and Saturday | 4–5 | 2 |

That is about 43 room-nights in the two weeks. Stays last 1 to 3 nights, about 25 stays. Superior rooms (201, 202) are taken first at the weekend. Breakfast is taken by about 70 % of the guests.

Make a table of the stays first (room, guest name such as "M. Dupont", arrival, nights, guests, breakfasts) and show it before any bill.

### 12.3 Bills

| What | Till | Bill |
|---|---|---|
| Each stay, at check-out (morning) | TILL0 Réception matin | One bill per stay (`save_draft_document` with the hotel's bill type; from the room, to the general client, the guest's name on the bill): nights × price, breakfasts, tourist tax (guests × nights × €1.50), minibar items. Then `post_document` and `pay_pos_bills` (mostly card, some cash) |
| The bar, each evening | TILL1 Réception soir | One bill per day for drinks served at the bar (water, soda, beer, glasses of wine): about €20–60 on weekdays, €60–120 on Friday and Saturday |

The morning till takes most of the money (the check-outs); the evening till takes the bar. Bills are written by Claude as the owner, not as the receptionists.

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

| Supplier | Week's goods (approx.) |
|---|---|
| Boulangerie | Croissants 30, baguettes 8 (daily deliveries, one invoice a week, paid in cash) |
| Grossiste | Butter 0.6 kg, jam 1 kg, coffee 0.5 kg, milk 3 l, orange juice 6 l, sugar 0.3 kg |
| Boissons | Water 24, soda 24, beer 24, wine 6 l (8 bottles) |
| Hygiène Demo | Welcome kits 50 (first week only: enough for the 43 nights of the two weeks) |
| Blanchisserie | Laundry €300 a week, a service booked as a cost (account line) |

### 12.5 Supplier payments

At the end of each week, pay the wholesaler, the drinks supplier and the laundry by hand from the bank, **each payment against one invoice by its number**. The bakery is paid in cash from Caisse réception. Leave the second week's wholesaler and laundry invoices open, so open invoices show something.

### 12.6 Approval

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

## 13. 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 HOTELANNECY):

| Row | Debit | Credit |
|---|---|---|
| Loyer (rent, SCI Demo Sainte-Claire) | Rent expense €3,500 | Supplier SCI Demo Sainte-Claire €3,500 |
| Électricité (electricity, Énergie Demo) | Electricity expense €700 | Supplier Énergie Demo €700 |
| Eau (water, Eau Demo Annecy) | Water expense €250 | Supplier Eau Demo Annecy €250 |
| Comptabilité (accountant, Cabinet Comptable Demo) | Professional fees €350 | Supplier Cabinet Comptable Demo €350 |
| **Total** | **€4,800** | **€4,800** |

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

| Row | Debit | Credit |
|---|---|---|
| Rent paid | Supplier SCI Demo Sainte-Claire €3,500 | Banque – compte courant €3,500 |
| Electricity paid | Supplier Énergie Demo €700 | Banque – compte courant €700 |
| Water paid | Supplier Eau Demo Annecy €250 | Banque – compte courant €250 |
| Accountant paid | Supplier Cabinet Comptable Demo €350 | Banque – compte courant €350 |
| **Total** | **€4,800** | **€4,800** |

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. **Tourist tax for October**: one journal entry on 31 October paying what the bills collected (from the liability account to the bank, against the partner Commune d'Annecy). The amount varies each month, so it is not on the recurring sheet.
5. **Wages** of the 4 workers: one journal entry, 4 × €1,900 = €7,600 (wages expense against the bank), not payroll.
6. **Stock count:** the ERP has no stock count document. Show the `stock` report (breakfast ingredients, welcome kits, drinks, with value) as the count, and list it as missing.
7. **Live, on today's date (on the screens, or by the user):**
   - Open a shift on TILL0 with `pos_shift` (€200 in the drawer) and close it with the cash counted.
   - A real stay with `stay`: book room 101 from today for 2 nights for "Mme Martin" at €95 (`action book`), check her in (`check-in`), extend it by one night (`extend`), and check her out (`check-out`, which posts the bill for the nights slept: final). Then pay the bill with `pay_pos_bills` and show the rooms grid with `stays`. Also book room 201 for next weekend and leave it booked, so the grid shows a future stay. The user can watch the same grid on the Stays screen at http://127.0.0.1:8090.

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

## 14. Reports to show at the end

| Report | Tool | Period |
|---|---|---|
| Trial balance | `trial_balance` | 1–31 October 2026 |
| Profit and loss | `profit_and_loss` | 1–31 October 2026 |
| Balance sheet | `balance_sheet` | 31 October 2026 |
| Stock of breakfast ingredients, welcome kits and drinks, with value | `stock` | 31 October |
| Revenue by room (101–202) and occupancy (room-nights sold of 70) | `sales_lines` by place (the rooms) | 12–25 October |
| Revenue by item (nights, breakfasts, bar, minibar, tourist tax) | `sales_lines` (sales, by product) | 12–25 October |
| Sales by shift (morning check-outs vs evening bar) | `sales_lines` by place (TILL0 vs TILL1) | 12–25 October |
| Average price per night sold and per stay | From the sales lines | 12–25 October |
| Tourist tax collected and paid | `account_ledger` on its liability account | 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 15 | – |

## 15. Missing / not possible

| What | What is done instead |
|---|---|
| Stays (book, check in, extend, check out) on past dates | October's nights are bills on each room; real stays are run live with `stay` on today's date |
| 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 receptionists | Claude writes them as the owner; the tills separate the shifts |
| A guest register (police form, nationality, ID) | Not in the ERP; the guest's name is on the bill only |
| Online booking channels and a channel manager | Not in the ERP |
| The tourist tax on its own account | Configured in step 7 if the scenarios allow it; otherwise a month-end journal |
| Payroll | Wages are one journal entry |
| A litre unit in the French pack | Added in step 4 |

## 16. Order of work and approvals

| # | Step | Tools | Approval |
|---|---|---|---|
| 0 | New company and connector | `create-company` on the server, `.claude.json` | Yes first (can't be undone) |
| 1 | Reconnect, `list_workplaces` = HOTELANNECY, company, bank, cash desk, hotel, floors, rooms, tills, settings | `set_company_details`, `add_cost_center`, `save_configuration_row` | One yes for section 5 |
| 2 | Users, menus, rights, till setting | `add_user`, `set_role_access`, `set_document_type_users`, `save_configuration_row` | One yes for section 6 |
| 3 | Partners | `register_setup`, `save_register_row` | One yes for section 7 |
| 4 | Categories, types, the litre | `save_register_category`, `save_register_type`, `save_register_row` (units) | One yes |
| 5 | 15 products with VAT | `save_register_row` | One yes for section 9, with the VAT groups named |
| 6 | Night, breakfast, glass of wine and their recipes | `save_register_row`, `save_configuration_row` | One yes for section 10 |
| 7 | Prices, the night product, the tourist tax's posting | `save_configuration_row`, `read_configuration` | One yes |
| 8 | Opening | `save_draft_document`, `post_document` | Yes before posting (final) |
| 9 | The stays table, then week 1 and week 2: purchases, stay bills, bar bills, payments | `save_draft_document`, `post_document`, `pay_pos_bills` | Yes for the stays table, then per week before posting (final) |
| 10 | Month end: cost sheet (31 Oct), payment sheet (5 Nov), their November repeats (not posted), tourist tax, wages, stock, one live shift and live stays | `save_journal_sheet`, `repeat_document`, journal, `stock`, `pos_shift`, `stays`, `stay`, `pay_pos_bills` | Yes before posting each sheet, each repeat and each journal |
| 11 | Reports and the missing list | report tools | – |
