# Taller Demo Valencia: 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 car repair shop in Valencia, Spain, in the local Gamma ERP, through Claude and a connector for the workshop's own company. It follows the same logic as the gelateria, bar, pizzeria, hotel and cinema 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 workshop:
- **Each job runs on the ERP's repairs board:** a new job (the client and the car) makes a repair intake, then an offer of parts and labour, then the client's decision (accepted or refused), then the bill, a sales invoice to the client, posted, with the parts leaving stock.
- **The connector does the whole flow** (`repairs`, `repair`). The board makes each document dated today, but each is an unposted draft until it is posted, so Claude dates it in October (`save_draft_document`) before posting.
- **Parts are stock.** Labour, diagnosis and tyre fitting are services.
- **The client pays at pick-up** with a receipt against the invoice's number. A company client (a small fleet) pays at 30 days and shows as an open invoice.
- **Small parts** (bulbs, wipers) are also sold over the counter on the till, without a job.
- **The 2 mechanics are the technicians on the jobs.** In the ERP a technician is an employee (Company › Employees), not a user.

## 1. Where it runs

| Item | Value |
|---|---|
| ERP screens | http://127.0.0.1:8090 (also http://localhost:8090) |
| Claude connector (new) | `gamma-erp-taller` → `http://127.0.0.1:8090/mcp`, signed in as `taller.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 | Taller Demo Valencia, code `TALLERVALENCIA`, Spanish pack, currency EUR |
| Credentials | `taller-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-taller__*` tools.
2. Call `list_workplaces` first. The workplace must be `TALLERVALENCIA`.
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 repairs (overview, new-job, offer, bill, board, setup), point-of-sale (repair shop, paying, shifts), stock, documents (payments and open invoices), 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 Spanish chart (PGC) keeps its account names in Spanish.

## 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 "Taller Demo Valencia" --code TALLERVALENCIA --country ES --username taller.owner --activity GENERAL
```

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

### 3. Connect Claude to the company

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

This adds the connector `gamma-erp-taller` 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 `TALLERVALENCIA`; `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 `taller.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-taller` 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 `TALLERVALENCIA`, 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 `taller-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-taller` added | To do: needs the user's yes (it can't be undone) |
| 1 | Company details, bank, cash desk, the workshop, the parts store, two reception tills, settings, repair stages | To do |
| 2 | Users, roles, menus, rights, the 2 mechanics as employees, "bills need an open shift" = No | To do |
| 3 | Partners (7 suppliers, 1 company client) | To do |
| 4 | Product categories, types and units (add the litre) | To do |
| 5 | Products: 12 parts, 4 services | To do |
| 6 | Sale prices, the till's menu | To do |
| 7 | Opening: capital, till float, first stock of parts | To do |
| 8 | Simulation, weeks 1 and 2: repair jobs, counter sales | To do |
| 9 | Month end, with the recurring cost and payment sheets | To do |
| 10 | 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 "Taller Demo Valencia" --code TALLERVALENCIA --country ES --username taller.owner --activity GENERAL` |
| 2 | First password and first Claude token | Printed once. Save them to `taller-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-taller` 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 Spanish pack (chart, documents, posting rules, VAT, repairs, the till, stock).

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

| What | Code | Detail |
|---|---|---|
| Company details (`set_company_details`) | TALLERVALENCIA | Trade name Taller Demo; address Avenida del Puerto, 46023 Valencia, España; NIF B00000000 (placeholder); phone and e-mail placeholders |
| Bank account (`add_cost_center`, BANK) | BANK0 | "Banco – cuenta corriente", EUR, on the pack's bank account |
| Cash desk (`add_cost_center`, CASH_DESK) | CASH_DESK0 | "Caja taller", EUR, on the pack's cash account |
| Parts store (`add_cost_center`, WAREHOUSE) | WH0 | "Almacén de recambios": where the parts are kept and leave from on each bill |
| The workshop, a point of sale of kind Repair shop (`add_cost_center`, POS_REPAIRS) | POS_TALLER0 | "Taller Demo – Avenida del Puerto" |
| Morning reception till (TILL) | TILL0 | "Recepción mañana (08:00–14:00)", under the workshop |
| Afternoon reception till (TILL) | TILL1 | "Recepción tarde (14:00–20:00)", under the workshop |
| The workshop's point-of-sale settings (`save_configuration_row`) | – | Screen Repair shop (repairs); cash desk = Caja taller; walk-in client = the general client; payment method Cash |
| Repair stages (`read_configuration` `repair-stages`) | – | Use the pack's stages (Received, Offer given, Accepted…). Add "Waiting for parts" (Esperando recambios) after Accepted if the pack has none |

Open Monday to Friday 08:00–20:00 in two shifts, and Saturday 09:00–13:00 (morning shift only). Closed on Sunday.

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

### 6.1 Users (`add_user`)

| User name | Name | Role | Place |
|---|---|---|---|
| taller.owner | Owner (made in step 0) | Administrator | TALLERVALENCIA |
| taller.gestoria | Accountant (gestoría, off-site) | Finance | TALLERVALENCIA |
| taller.recepcion.manana | Service advisor, morning | Cashier + Technician (repair board) | TILL0 |
| taller.recepcion.tarde | Service advisor, afternoon | Cashier + Technician (repair board) | TILL1 |

Passwords are generated, saved to `taller-credentials.txt` and changed at the first sign-in. The Technician role gives the repair board and the intake, offer and services-invoice types; the advisors run the board.

### 6.2 The 4 workers and the mechanics as employees

| Shift | ERP user | Other worker |
|---|---|---|
| Morning 08:00–14:00 (and Saturday) | 1 service advisor (POS seller: jobs, counter, payments) | 1 mechanic, "Javier Demo" |
| Afternoon 14:00–20:00 | 1 service advisor | 1 mechanic, "Lucía Demo" |

The mechanics have no ERP user. They are **employees** (Company › Employees), so they can be chosen as the technician on a job. Users are not employees: never link them. The owner isn't one of the 4 workers and takes no wage.

Add the 2 mechanics with `save_register_row` (register `employees`; read `register_setup` employees first for the type, e.g. WORKER, and the category, e.g. STAFF). Their names are then chosen as the technician on each job.

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

| Role | Menu | Rights |
|---|---|---|
| Finance | Dashboard; Documents › Purchases, Sales, 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. Clients and suppliers: read all. No till, no repair board, no products or prices |
| Cashier | Point of sale, POS shifts | Documents: Sales, Cash desk (read own, write) |
| Technician | Repairs › Repair board (from the pack) | As the pack gives it: Repairs and Sales documents, Clients |

### 6.4 Document types and the till setting

- `set_document_type_users`: give role Finance the purchase invoice, sales invoice (services), supplier payments and client receipts (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 workshop's setting "Bills need an open shift" = No, because back-dated October counter 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 | Category | Payment days | NIF (placeholder) | Supplies / buys |
|---|---|---|---|---|
| Recambios Demo Levante SL (parts distributor) | Suppliers | 30 | B00000001 | Oil, filters, brakes, batteries, spark plugs, coolant, bulbs, wipers |
| Neumáticos Demo SL (tyres) | Suppliers | 30 | B00000002 | Tyres |
| Naves Demo Puerto SL (landlord) | Suppliers | 0 | B00000003 | Rent of the workshop €1,600/month |
| Energía Demo SA (electricity) | Suppliers | 30 | A00000004 | Electricity about €350/month (lifts, compressor) |
| Aguas Demo Valencia SA (water) | Suppliers | 30 | A00000005 | Water about €50/month |
| Gestoría Demo Valencia (accountant) | Suppliers | 30 | B00000006 | Fee €200/month |
| Residuos Demo SL (waste oil and filter collection) | Suppliers | 30 | B00000007 | Collection €60 every two weeks |
| Flota Demo Reparto SL (a small delivery fleet, 4 vans) | Clients | 30 | B00000008 | Services on its vans, invoiced, paid at 30 days |

Private clients are made by the board's New job, from a name and phone (e.g. "Ana García Demo", 600 000 001); counter sales go to the general client.

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

| What | Proposal |
|---|---|
| Product categories | Recambios (parts), Neumáticos (tyres), Servicios de taller (workshop services) |
| Product types | Goods for parts and tyres; a type "Servicio de taller" for labour, diagnosis, tyre fitting and the waste fee |
| Units | kg, piece and hour exist. **Add "l" (litre)**: the Spanish pack has no litre unit |

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

### 9.1 VAT (the Spanish pack has 21 %, 10 %, 4 % and 0 %)

Everything a workshop buys and sells is at **21 %**: parts, tyres, labour, rent of the workshop, electricity, the gestoría and the waste collection. Water is at 10 %. Show the user the VAT group of each product before saving.

### 9.2 Parts and tyres (stock, from the parts store)

| Code | Name | Unit | Cost (excl. VAT) | Sale price (excl. VAT) | Supplier |
|---|---|---|---|---|---|
| REC-ACE | Aceite motor 5W-30 (engine oil) | l | €6.00 | €12.00 | Recambios |
| REC-FAC | Filtro de aceite (oil filter) | piece | €5.00 | €12.00 | Recambios |
| REC-FAI | Filtro de aire (air filter) | piece | €8.00 | €18.00 | Recambios |
| REC-FHA | Filtro de habitáculo (cabin filter) | piece | €7.00 | €16.00 | Recambios |
| REC-PAS | Pastillas de freno delanteras (front brake pads, set) | piece | €25.00 | €55.00 | Recambios |
| REC-DIS | Discos de freno delanteros (front brake discs, pair) | piece | €60.00 | €120.00 | Recambios |
| REC-ESC | Escobillas limpiaparabrisas (wiper blades, pair) | piece | €12.00 | €25.00 | Recambios |
| REC-BAT | Batería 70 Ah (battery) | piece | €75.00 | €130.00 | Recambios |
| REC-BUJ | Bujía (spark plug) | piece | €6.00 | €12.00 | Recambios |
| REC-ANT | Anticongelante (coolant) | l | €3.00 | €7.00 | Recambios |
| REC-BOM | Bombilla H7 (bulb) | piece | €4.00 | €9.00 | Recambios |
| NEU-205 | Neumático 205/55 R16 (tyre) | piece | €55.00 | €85.00 | Neumáticos |

### 9.3 Services (category Servicios de taller, no stock)

| Code | Name | Unit | Sale price (excl. VAT) |
|---|---|---|---|
| SER-MOB | Mano de obra (labour) | hour | €48.00 |
| SER-DIA | Diagnosis electrónica (diagnosis) | piece | €40.00 |
| SER-MON | Montaje y equilibrado (tyre fitting and balancing, per tyre) | piece | €15.00 |
| SER-RES | Gestión de residuos (waste fee, per service with oil or filters) | piece | €3.00 |

Prices on the repair offers and invoices are without VAT (VAT 21 % is added). Counter prices at the till are with VAT: bulb €10.89, wiper blades €30.25.

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

1. Sale prices (`save_configuration_row`, the sale-price model; read its columns first): the 12 parts and 4 services at the prices above, from 2026-10-01.
2. The till's sale menu: one menu for the workshop's counter, open 08:00–20:00, with the parts sold over the counter (bulbs, wiper blades, coolant, engine oil by the litre). Both tills use it.
3. Check with `unpaid_pos_bills` on TILL0 that the workshop's settings show nothing missing.

## 11. Step 7: opening (12 October)

| Document | Detail |
|---|---|
| Owner's capital | €25,000 into the bank (bank receipt against the owner's capital account of the Spanish chart) |
| Till float | €150 from the bank into Caja taller |
| First stock of parts (purchase invoice, Recambios, into Almacén de recambios) | Oil 60 l, oil filters 20, air filters 12, cabin filters 10, brake pads 8, brake discs 4, wiper blades 10, batteries 4, spark plugs 16, coolant 20 l, bulbs 20 |
| First stock of tyres (purchase invoice, Neumáticos) | 16 tyres |

## 12. Simulation

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

### 12.1 The jobs

About 3 jobs a weekday and 2 on Saturday morning: **34 jobs** in the two weeks. Typical jobs (lines of the offer and the bill):

| Job | Lines | Total (excl. VAT) |
|---|---|---|
| Cambio de aceite y filtros (oil service) | Oil 4.5 l, oil filter 1, air filter 1, labour 1 h, waste fee 1 | €135.00 |
| Pastillas de freno delanteras (front brake pads) | Brake pads 1, labour 1 h | €103.00 |
| Pastillas y discos delanteros (pads and discs) | Brake pads 1, brake discs 1, labour 1.5 h | €247.00 |
| Dos neumáticos (two tyres) | Tyres 2, fitting and balancing 2 | €200.00 |
| Batería (battery) | Battery 1, labour 0.3 h | €144.40 |
| Diagnosis y bujías (diagnosis and spark plugs) | Diagnosis 1, spark plugs 4, labour 0.8 h | €126.40 |
| Revisión completa (full service) | Oil 4.5 l, oil, air and cabin filters, coolant 2 l, wiper blades 1, labour 2 h, waste fee 1 | €275.00 |

Mix over the 34 jobs: oil service 10, front brake pads 5, pads and discs 3, two tyres 6, battery 3, diagnosis and spark plugs 3, full service 4. Of the 34, **3 offers are refused** (the client only pays the diagnosis, invoiced as €40), and **4 jobs are the fleet's vans** (Flota Demo Reparto, paid at 30 days).

### 12.2 Each job on the board (`repair`, then documents)

| # | Step | Tool | Then |
|---|---|---|---|
| 1 | New job: the client (from the register, or name and phone), the mechanic of the shift as technician | `repair` action new | Date the intake on the job's day, and give it the car (plate, make and model, km, from the intake's properties) with `save_draft_document` |
| 2 | Offer of parts and labour | `repair` action offer | Add the job's lines and the date with `save_draft_document` |
| 3 | The client decides | `repair` action decide (accepted or refused) | Move the card with `repair` action move |
| 4 | The bill: a draft sales invoice copied from the offer | `repair` action bill | Date it on the pick-up day (the same day, or the next day for pads and discs and full services) with `save_draft_document`, then `post_document`: the parts leave the store |
| 5 | Payment at pick-up | A client receipt against the invoice's number (cash or card, into Caja taller or the bank) | The fleet's invoices stay open (30 days) |

A refused offer is billed as one diagnosis line (€40), made with `save_draft_document` as a services invoice to the client. If the board's documents can't be re-dated to October, keep them on today's date for one demonstration job only, and enter the rest as services invoices dated in October; list it as missing.

The morning advisor and mechanic take the jobs that come in before 14:00, the afternoon pair the rest. About 60 % of jobs come in the morning.

### 12.3 Counter sales

Every day, one bill per till (`save_draft_document` with the workshop's bill type; from the till, to the general client), then `post_document` and `pay_pos_bills`: bulbs, wiper blades, coolant, oil by the litre, about €20–80 a day.

### 12.4 Every week: purchases and payments

| When | Document |
|---|---|
| Thursday | Purchase invoice from Recambios, refilling what the week's jobs used (show the stock first) |
| When needed | Purchase invoice from Neumáticos (tyres) |
| Friday 16 and 23 October | Purchase invoice from Residuos Demo, €60 (waste oil and filter collection, a service) |
| Friday | Pay Recambios and Neumáticos by hand from the bank, **each payment against one invoice by its number**; leave the second week's open |

### 12.5 Approval

Make a table of the 34 jobs first (day, shift, client, car, job, mechanic, accepted or refused, pick-up day, total, how paid) and show it before any job is made. Then show each week's drafts as one group: intakes, offers, bills, receipts, counter bills, purchases, payments, with totals. Post only after a yes.

## 13. Month end (31 October)

The fixed monthly bills (rent, electricity, water, the gestoría'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 TALLERVALENCIA):

| Row | Debit | Credit |
|---|---|---|
| Alquiler (rent, Naves Demo Puerto) | Rent expense €1,600 | Supplier Naves Demo Puerto €1,600 |
| Electricidad (electricity, Energía Demo) | Electricity expense €350 | Supplier Energía Demo €350 |
| Agua (water, Aguas Demo Valencia) | Water expense €50 | Supplier Aguas Demo Valencia €50 |
| Gestoría (accountant, Gestoría Demo Valencia) | Professional fees €200 | Supplier Gestoría Demo Valencia €200 |
| **Total** | **€2,200** | **€2,200** |

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

| Row | Debit | Credit |
|---|---|---|
| Rent paid | Supplier Naves Demo Puerto €1,600 | Banco – cuenta corriente €1,600 |
| Electricity paid | Supplier Energía Demo €350 | Banco – cuenta corriente €350 |
| Water paid | Supplier Aguas Demo Valencia €50 | Banco – cuenta corriente €50 |
| Gestoría paid | Supplier Gestoría Demo Valencia €200 | Banco – cuenta corriente €200 |
| **Total** | **€2,200** | **€2,200** |

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,500 = €6,000 (wages expense against the bank), not payroll.
5. **Stock count:** the ERP has no stock count document. Show the `stock` report (parts and tyres in Almacén de recambios, with value) as the count, and list it as missing.
6. **Live, on today's date:** open a shift on TILL0 with `pos_shift` (€150 in the drawer) and close it with the cash counted. Show the board with `repairs`: October's jobs in their final stage, and one new job made today (`repair` action new) left at Received.

Note: two weeks of work 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 of parts and tyres, with value | `stock` | 31 October |
| Revenue by job type: parts vs labour vs other services | `sales_lines` (sales, by product) | 12–24 October |
| Labour hours sold and revenue per hour | `sales_lines` on SER-MOB | 12–24 October |
| Jobs by technician (Javier vs Lucía) and by shift | `repairs` board cards and `sales_lines` | 12–24 October |
| Offers accepted vs refused | The repair offers' decisions | 12–24 October |
| Gross margin on parts | Parts sales lines against their cost | 12–24 October |
| Counter sales by till (morning vs afternoon) | `sales_lines` by place (TILL0 vs TILL1) | 12–24 October |
| Open client invoices (the fleet's vans) and 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 |
|---|---|
| Board documents made on a past date | They are drafts: Claude dates them in October before posting; if a type refuses it, one live job only and the rest as services invoices |
| A vehicle register (cars by plate, history per car) | The car is on the intake's properties (plate, make, model, km) |
| 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 advisors | Claude writes them as the owner; the technician and the till separate the shifts |
| Spanish e-invoicing and VeriFactu (records sent to the tax office) | Check the guide. If the ERP has none, the simulated invoices are not VeriFactu records; list it |
| Payroll | Wages are one journal entry |
| A litre unit in the Spanish 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` = TALLERVALENCIA, company, bank, cash desk, store, workshop, tills, settings, stages | `set_company_details`, `add_cost_center`, `save_configuration_row`, `read_configuration` | One yes for section 5 |
| 2 | Users, menus, rights, till setting; the 2 mechanics as employees | `add_user`, `set_role_access`, `set_document_type_users`, `save_configuration_row`, `save_register_row` (employees) | 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 | 16 products with VAT | `save_register_row` | One yes for section 9 |
| 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 | The jobs table, then week 1 and week 2: jobs on the board, bills, receipts, counter sales, purchases, payments | `repair`, `repairs`, `save_draft_document`, `post_document`, `pay_pos_bills` | Yes for the jobs table, then 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 and one live job | `save_journal_sheet`, `repeat_document`, journal, `stock`, `pos_shift`, `repair` | Yes before posting each sheet, each repeat and each journal |
| 10 | Reports and the missing list | report tools | – |
