# Count prepared portions — StockVision › Portions (FoodEatUp)

For dishes prepared in advance, a portion counter: it goes down with each sale, and the dish becomes “sold out” at zero on the till, the table QR code, the kiosk and the shop.

Tutorial page : https://foodeatup.com/en/academy/stockvision/carte-portions

## What it is for
- Know how many slices of tart or terrine are left, at any time.
- Stop selling a dish as soon as it runs out, on every channel.
- Keep track of losses (breakage, expired date, staff meal).

## Why set it up
- Tracking is optional: a dish that is not tracked sells as before.
- A counter not filled today never blocks a sale: it stays in “vente libre”.
- Only the till can sell “anyway” beyond the counter; the kiosk and the QR code refuse.

## Who is it for?
- Chef de cuisine
- Second de cuisine
- Patron / gérant

## Roles with access
- Gérant·e
- Chef de cuisine
- Cuisinier·ère (view)
- Serveur·se (view)
- Barman·maid (view)
- Hôte·sse / Caissier·ère (view)
- Laboratoire (réseau) (view)
- Boutique (réseau)
- Franchisé·e (réseau)
- Directeur·rice d'établissement
- Responsable site web & intégration (view)
- Responsable commercial (view)
- Responsable événements (view)
- Responsable marketing (view)
- Responsable communication (view)
- Responsable siège (view)

## Step by step
1. **Open Portions** — From Ma carte, tap the “Portions” view. Each card is a dish, with its state: Non suivi, Vente libre, En vente, Bientôt épuisé or Épuisé.
2. **Choose when a sale leaves the counter** — At the top, “Dès que la cuisine marque « prêt »” (if you have a kitchen screen) or “Au paiement seulement”.
3. **Track a dish** — Tick “Suivre en portions”. “Portions par vente” is 1; set 2 for a large size, 0.5 for a half portion.
4. **Do the morning count** — Tap “Inventaire” and type the number of portions ready. The counter is filled for the day: at zero, the dish becomes “sold out”.
5. **Note a loss** — Tap “Perte”, the quantity and the reason (Casse, Date dépassée, Repas du personnel, Plat renvoyé). The counter goes down.
6. **Read the log** — Tap “Journal”: production, sales, counts and losses, with the time and the change.

## Each prepared dish has its counter
Tracked dishes show their sellable portions. At zero, they become “sold out” on the till, the table QR code, the kiosk and the shop.

- **The owner** : Chooses the tracked dishes and when sales are counted, and does counts and losses.
- **The employee** : Sees the counters if their role opens the menu. Counts and losses require the right to edit dishes; otherwise the screen is read-only.

## Do it with your assistant
### How many are left?
> In FoodEatUp, for my establishment [number], tell me how many portions are left for each tracked dish.
What you get : The tracked dishes, their counter and those almost sold out.
Tools used : get_dish_portions

### The morning count
> In FoodEatUp, for my establishment [number], record [number] portions ready for the dish [dish].
What you get : The dish counter updated for the day.
Tools used : list_dishes, set_dish_portions

### A loss
> In FoodEatUp, for my establishment [number], note the loss of [number] portions of [dish], reason [reason].
What you get : The loss recorded and the new counter.
Tools used : set_dish_portions

## What you gain
- No more selling what is gone : At zero, the dish is sold out everywhere.
- Never blocking : An empty counter one morning leaves the dish on free sale.
- What is left on screen : The till shows “Reste N” on the dish tile.
- Losses tracked : Each loss has its reason and its time.

## The Chef’s tip
Do the count right after the prep: it is what arms the automatic sold-out for the day.

## What is linked to this screen
- [StockVision › Production](https://foodeatup.com/en/academy/stockvision/production) : Production, which fills the counters when it is validated.
- [StockVision › Waste & staff meals](https://foodeatup.com/en/academy/stockvision/production-pertes) : The day’s losses and staff meals.
- [Service › Till](https://foodeatup.com/en/academy/service/service-caisse-fullscreen) : The till, which shows what is left on each tile.

## Frequently asked questions
**What if I did not do the count?**
The dish stays on free sale: the counter only blocks a sale if it was filled today.

**Can the counter go below zero?**
Only if the till sells “anyway”: the software notes it so you redo the count.

**Does validating a production fill the counter?**
Yes. The quantity produced, or the portions entered, are added to the tracked dish’s counter.

