# hamzahalawa26/system-of-selling-project architecture

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

- Interactive diagram: https://gitdiagram.com/hamzahalawa26/system-of-selling-project
- Repository: https://github.com/hamzahalawa26/system-of-selling-project

## Overview

This is a Windows desktop point-of-sale and store-management application. A user works through the main application window to sign in, manage a sales cart, apply a coupon, and complete checkout; administrators also manage products and store operations. The source index and excerpts identify supporting authentication, database, forecasting, reporting, media, barcode, PDF, and maintenance modules. The two trees are versioned copies, so the graph uses the v11_6 paths. Some subsystem calls are not visible in the excerpts, so uncertain links are omitted.

Main entry points: [`System_of_Selling_v11_6/System_of_Selling/Code/src/main.cpp`](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/main.cpp) (POS application), [`System_of_Selling_v11_6/System_of_Selling/Code/src/auth.cpp`](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/auth.cpp) (Authentication), [`System_of_Selling_v11_6/System_of_Selling/Code/src/db.cpp`](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/db.cpp) (SQLite data access), [`System_of_Selling_v11_6/System_of_Selling/Code/src/coupons.cpp`](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/coupons.cpp) (Coupon management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_app["POS application<br/>[main.cpp]"]
  node_ui["UI strings<br/>[ui.h]"]
end

subgraph group_sales["Sales and Inventory"]
  node_coupons["Coupon management<br/>[coupons.cpp]"]
  node_barcode["Barcode handling<br/>[barcode.cpp]"]
end

subgraph group_operations["Store Operations"]
  node_forecast["Sales forecasting<br/>[forecast.cpp]"]
  node_reports["Reports<br/>[reports.cpp]"]
  node_pdf["PDF output<br/>[pdf.cpp]"]
  node_media["Product media<br/>[media.cpp]"]
  node_maintenance["Maintenance<br/>[maintenance.cpp]"]
end

subgraph group_platform["Platform Services"]
  node_auth["Authentication<br/>[auth.cpp]"]
  node_db[("SQLite data access<br/>[db.cpp]")]
end

node_operator(("Store user"))

node_operator -->|"uses"| node_app
node_app -->|"verifies password"| node_auth
node_app -->|"checks coupon"| node_coupons
node_app -->|"queries products"| node_db
node_auth -->|"reads settings"| node_db

click node_app "https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/main.cpp"
click node_ui "https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/ui.h"
click node_auth "https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/auth.cpp"
click node_db "https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/db.cpp"
click node_coupons "https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/coupons.cpp"
click node_barcode "https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/barcode.cpp"
click node_forecast "https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/forecast.cpp"
click node_reports "https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/reports.cpp"
click node_pdf "https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/pdf.cpp"
click node_media "https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/media.cpp"
click node_maintenance "https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/maintenance.cpp"

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_app,node_ui,node_operator toneBlue
class node_coupons,node_barcode toneAmber
class node_forecast,node_reports,node_pdf,node_media,node_maintenance toneMint
class node_auth,node_db toneRose
```

## Components

### Application

- [POS application](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/main.cpp): `System_of_Selling_v11_6/System_of_Selling/Code/src/main.cpp`
- [UI strings](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/ui.h): `System_of_Selling_v11_6/System_of_Selling/Code/src/ui.h`

### Sales and Inventory

- [Coupon management](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/coupons.cpp): `System_of_Selling_v11_6/System_of_Selling/Code/src/coupons.cpp`
- [Barcode handling](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/barcode.cpp): `System_of_Selling_v11_6/System_of_Selling/Code/src/barcode.cpp`

### Store Operations

- [Sales forecasting](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/forecast.cpp): `System_of_Selling_v11_6/System_of_Selling/Code/src/forecast.cpp`
- [Reports](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/reports.cpp): `System_of_Selling_v11_6/System_of_Selling/Code/src/reports.cpp`
- [PDF output](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/pdf.cpp): `System_of_Selling_v11_6/System_of_Selling/Code/src/pdf.cpp`
- [Product media](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/media.cpp): `System_of_Selling_v11_6/System_of_Selling/Code/src/media.cpp`
- [Maintenance](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/maintenance.cpp): `System_of_Selling_v11_6/System_of_Selling/Code/src/maintenance.cpp`

### Platform Services

- [Authentication](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/auth.cpp): `System_of_Selling_v11_6/System_of_Selling/Code/src/auth.cpp`
- [SQLite data access](https://github.com/hamzahalawa26/system-of-selling-project/blob/main/System_of_Selling_v11_6/System_of_Selling/Code/src/db.cpp): `System_of_Selling_v11_6/System_of_Selling/Code/src/db.cpp`

### Other components

- **Store user**

## Connections

- Store user → POS application: uses (evidence: `System_of_Selling_v11_6/System_of_Selling/Code/src/main.cpp`)
- POS application → Authentication: verifies password (evidence: `System_of_Selling_v11_6/System_of_Selling/Code/src/main.cpp`)
- POS application → Coupon management: checks coupon
- POS application → SQLite data access: queries products
- Authentication → SQLite data access: reads settings (evidence: `System_of_Selling_v11_6/System_of_Selling/Code/src/auth.cpp`)
