# ahmdelsayed/_ims_inventory_management_system architecture

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

- Interactive diagram: https://gitdiagram.com/ahmdelsayed/_ims_inventory_management_system
- Repository: https://github.com/ahmdelsayed/_ims_inventory_management_system

## Overview

This is a Tkinter desktop inventory-management system. Employees authenticate, then use the dashboard to open management screens; the product workflow supports maintaining catalog records and creating bills, which are saved for later invoice review. The application accesses SQL Server directly from its GUI modules, while billing and sales also use text files. The graph preserves the documented OTP recovery capability. Edges reflect shown calls, database operations, or README statements; unsampled internals are not inferred.

Main entry points: [`dashboard.py`](https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/dashboard.py) (Dashboard), [`login.py`](https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/login.py) (Login and recovery), [`billing.py`](https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/billing.py) (Billing and invoices), [`employee.py`](https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/employee.py) (Employee management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and dashboard"]
  node_login["Login and recovery<br/>[login.py]"]
  node_dashboard["Dashboard<br/>[dashboard.py]"]
end

subgraph group_catalog["Inventory management"]
  node_employee["Employee management<br/>[employee.py]"]
  node_category["Category management<br/>[category.py]"]
  node_supplier["Supplier management<br/>[supplier.py]"]
  node_product["Product management<br/>[product.py]"]
end

subgraph group_sales["Billing and sales"]
  node_billing["Billing and invoices<br/>[billing.py]"]
  node_sales["Sales records<br/>[sales.py]"]
end

subgraph group_persistence["Data and integrations"]
  node_sqlserver[("SQL Server")]
  node_billfiles[("Invoice text files")]
  node_email["Email service"]
end

node_user(("Admin or staff"))

node_user -->|"signs in"| node_login
node_login -->|"checks credentials"| node_sqlserver
node_login -->|"launches"| node_dashboard
node_login -->|"updates password"| node_sqlserver
node_login -->|"sends OTP"| node_email
node_user -->|"uses"| node_dashboard
node_dashboard -->|"opens"| node_employee
node_dashboard -->|"opens"| node_category
node_dashboard -->|"opens"| node_supplier
node_dashboard -->|"opens"| node_product
node_dashboard -->|"opens"| node_sales
node_dashboard -->|"opens"| node_billing
node_dashboard -->|"queries statistics"| node_sqlserver
node_employee -->|"manages records"| node_sqlserver
node_category -->|"manages records"| node_sqlserver
node_supplier -->|"manages records"| node_sqlserver
node_product -->|"manages records"| node_sqlserver
node_billing -->|"reads products"| node_sqlserver
node_billing -.->|"stores billing data"| node_sqlserver
node_billing -.->|"saves invoices"| node_billfiles
node_sales -->|"reads invoices"| node_billfiles

click node_login "https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/login.py"
click node_dashboard "https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/dashboard.py"
click node_employee "https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/employee.py"
click node_category "https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/category.py"
click node_supplier "https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/supplier.py"
click node_product "https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/product.py"
click node_billing "https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/billing.py"
click node_sales "https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/sales.py"
click node_billfiles "https://github.com/ahmdelsayed/_ims_inventory_management_system/tree/main/bill"

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_login,node_dashboard toneBlue
class node_employee,node_category,node_supplier,node_product toneAmber
class node_billing,node_sales toneMint
class node_sqlserver,node_billfiles,node_email toneRose
class node_user toneIndigo
```

## Components

### Access and dashboard

- [Login and recovery](https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/login.py): `login.py`
- [Dashboard](https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/dashboard.py): `dashboard.py`

### Inventory management

- [Employee management](https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/employee.py): `employee.py`
- [Category management](https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/category.py): `category.py`
- [Supplier management](https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/supplier.py): `supplier.py`
- [Product management](https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/product.py): `product.py`

### Billing and sales

- [Billing and invoices](https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/billing.py): `billing.py`
- [Sales records](https://github.com/ahmdelsayed/_ims_inventory_management_system/blob/main/sales.py): `sales.py`

### Data and integrations

- **SQL Server**
- [Invoice text files](https://github.com/ahmdelsayed/_ims_inventory_management_system/tree/main/bill): `bill`
- **Email service**

### Other components

- **Admin or staff**

## Connections

- Admin or staff → Login and recovery: signs in (evidence: `README.md`)
- Login and recovery → SQL Server: checks credentials (evidence: `login.py`)
- Login and recovery → Dashboard: launches (evidence: `login.py`)
- Login and recovery → SQL Server: updates password (evidence: `login.py`)
- Login and recovery → Email service: sends OTP (evidence: `login.py`)
- Admin or staff → Dashboard: uses (evidence: `README.md`)
- Dashboard → Employee management: opens (evidence: `dashboard.py`)
- Dashboard → Category management: opens (evidence: `dashboard.py`)
- Dashboard → Supplier management: opens (evidence: `dashboard.py`)
- Dashboard → Product management: opens (evidence: `dashboard.py`)
- Dashboard → Sales records: opens (evidence: `dashboard.py`)
- Dashboard → Billing and invoices: opens (evidence: `dashboard.py`)
- Dashboard → SQL Server: queries statistics (evidence: `dashboard.py`)
- Employee management → SQL Server: manages records (evidence: `employee.py`)
- Category management → SQL Server: manages records (evidence: `category.py`)
- Supplier management → SQL Server: manages records (evidence: `supplier.py`)
- Product management → SQL Server: manages records (evidence: `product.py`)
- Billing and invoices → SQL Server: reads products (evidence: `billing.py`)
- Billing and invoices → SQL Server: stores billing data (evidence: `README.md`)
- Billing and invoices → Invoice text files: saves invoices (evidence: `README.md`)
- Sales records → Invoice text files: reads invoices (evidence: `sales.py`)
