# sallmad30057/gestion_resaurant architecture

> Architecture diagram of the GitHub repository sallmad30057/gestion_resaurant, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sallmad30057/gestion_resaurant
- Repository: https://github.com/sallmad30057/gestion_resaurant

## Overview

Chez Sall is a Tkinter restaurant-management application. Its main workflow is entering and managing orders, then reviewing filtered orders, generating receipts, recording expenses, and viewing a manager-only financial summary. The README documents these capabilities, while the excerpts show GUI-side order persistence and financial calculations. Some GUI-to-feature connections are documented or indexed but not visible in the sampled code; those are cited accordingly.

Main entry points: [`res/Restaurant_GUI.py`](https://github.com/sallmad30057/gestion_resaurant/blob/main/res/Restaurant_GUI.py) (Tkinter application), [`res/recu.py`](https://github.com/sallmad30057/gestion_resaurant/blob/main/res/recu.py) (PDF receipt generation), [`res/menu.py`](https://github.com/sallmad30057/gestion_resaurant/blob/main/res/menu.py) (Menu and VAT), [`securite/mots_de_passe.py`](https://github.com/sallmad30057/gestion_resaurant/blob/main/securite/mots_de_passe.py) (Password settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Restaurant interface"]
  node_gui["Tkinter application<br/>[Restaurant_GUI.py]"]
  node_auth["Password settings<br/>[mots_de_passe.py]"]
end

subgraph group_domain["Order domain"]
  node_order_logic["Restaurant logic<br/>[Restaurant.py]"]
  node_menu["Menu and VAT<br/>[menu.py]"]
  node_orders[("Order records<br/>[commandes.csv]")]
end

subgraph group_finance["Finance"]
  node_expenses[("Expense records<br/>[Restaurant_GUI.py]")]
  node_financial_summary["Financial summary<br/>[Restaurant_GUI.py]"]
end

subgraph group_receipts["Receipts"]
  node_receipt_pdf["PDF receipt generation<br/>[recu.py]"]
  node_receipt_preview["Receipt preview<br/>[recu.py]"]
end

node_staff(("Restaurant staff"))

node_staff -->|"uses"| node_gui
node_gui -->|"checks passwords"| node_auth
node_gui -->|"imports"| node_order_logic
node_gui -->|"uses menu"| node_menu
node_gui -->|"reads and writes"| node_orders
node_gui -->|"records expenses"| node_expenses
node_gui -->|"calculates"| node_financial_summary
node_gui -->|"generates"| node_receipt_pdf
node_gui -->|"opens preview"| node_receipt_preview
node_receipt_pdf -->|"looks up prices"| node_menu

click node_gui "https://github.com/sallmad30057/gestion_resaurant/blob/main/res/Restaurant_GUI.py"
click node_auth "https://github.com/sallmad30057/gestion_resaurant/blob/main/securite/mots_de_passe.py"
click node_order_logic "https://github.com/sallmad30057/gestion_resaurant/blob/main/res/Restaurant.py"
click node_menu "https://github.com/sallmad30057/gestion_resaurant/blob/main/res/menu.py"
click node_orders "https://github.com/sallmad30057/gestion_resaurant/blob/main/commandes.csv"
click node_expenses "https://github.com/sallmad30057/gestion_resaurant/blob/main/res/Restaurant_GUI.py"
click node_financial_summary "https://github.com/sallmad30057/gestion_resaurant/blob/main/res/Restaurant_GUI.py"
click node_receipt_pdf "https://github.com/sallmad30057/gestion_resaurant/blob/main/res/recu.py"
click node_receipt_preview "https://github.com/sallmad30057/gestion_resaurant/blob/main/res/recu.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_gui,node_auth toneBlue
class node_order_logic,node_menu,node_orders toneAmber
class node_expenses,node_financial_summary toneMint
class node_receipt_pdf,node_receipt_preview toneRose
class node_staff toneIndigo
```

## Components

### Restaurant interface

- [Tkinter application](https://github.com/sallmad30057/gestion_resaurant/blob/main/res/Restaurant_GUI.py): `res/Restaurant_GUI.py`
- [Password settings](https://github.com/sallmad30057/gestion_resaurant/blob/main/securite/mots_de_passe.py): `securite/mots_de_passe.py`

### Order domain

- [Restaurant logic](https://github.com/sallmad30057/gestion_resaurant/blob/main/res/Restaurant.py): `res/Restaurant.py`
- [Menu and VAT](https://github.com/sallmad30057/gestion_resaurant/blob/main/res/menu.py): `res/menu.py`
- [Order records](https://github.com/sallmad30057/gestion_resaurant/blob/main/commandes.csv): `commandes.csv`

### Finance

- [Expense records](https://github.com/sallmad30057/gestion_resaurant/blob/main/res/Restaurant_GUI.py): `res/Restaurant_GUI.py`
- [Financial summary](https://github.com/sallmad30057/gestion_resaurant/blob/main/res/Restaurant_GUI.py): `res/Restaurant_GUI.py`

### Receipts

- [PDF receipt generation](https://github.com/sallmad30057/gestion_resaurant/blob/main/res/recu.py): `res/recu.py`
- [Receipt preview](https://github.com/sallmad30057/gestion_resaurant/blob/main/res/recu.py): `res/recu.py`

### Other components

- **Restaurant staff**

## Connections

- Restaurant staff → Tkinter application: uses (evidence: `README.md`)
- Tkinter application → Password settings: checks passwords (evidence: `README.md`)
- Tkinter application → Restaurant logic: imports (evidence: `res/Restaurant_GUI.py`)
- Tkinter application → Menu and VAT: uses menu (evidence: `res/Restaurant_GUI.py`)
- Tkinter application → Order records: reads and writes (evidence: `res/Restaurant_GUI.py`)
- Tkinter application → Expense records: records expenses (evidence: `README.md`)
- Tkinter application → Financial summary: calculates (evidence: `res/Restaurant_GUI.py`)
- Tkinter application → PDF receipt generation: generates (evidence: `README.md`)
- Tkinter application → Receipt preview: opens preview (evidence: `README.md`)
- PDF receipt generation → Menu and VAT: looks up prices (evidence: `res/recu.py`)
