How aggounnadir/app_gestion_stock_offic works
Gestion Stock is a desktop inventory and sales application with a FastAPI client/sales portal sharing a SQLite database. The desktop workflow enters through the Tk application, navigates domain pages and dialogs, and relies on shared business/data code; the portal exposes authenticated client, order, account, and field-sales endpoints. The graph preserves purchase, sales, invoicing, stock, customer, reporting, and pricing areas. Some page implementations and routes were not sampled; those links are included only where the source index or API registration shows them.
Main entry points: app.py Desktop navigation · main.py Portal API · bonventepage.py Sales · princing.py Pricing rules
Components 34
Desktop application
- Desktop navigation
modules/app.py
Business operations
- Purchases
modules/bonachatpage.py - Purchase editor
modules/bondialog.py - Sales
modules/bonventepage.py - Counter sales
modules/ventecomptoirdialog.py - Product catalog
modules/produitpage.py - Customer accounts
modules/tierspage.py - Invoicing
modules/facturedialog.py - Invoice management
modules/facturepage.py - Payments and receipts
modules/versementpage.py - Returns
modules/retourpage.py - Stock movements
modules/mouvementstockpage.py - Account situation
modules/situationpage.py - Sales analytics
modules/statistiquesventespage.py - Dashboard
modules/dashboardpage.py
Client and field API
- Portal API
api/main.py - Authentication routes
api/routers/auth.py - Client account routes
api/routers/clients.py - Order routes
api/routers/commandes.py - Sales routes
api/routers/ventes.py - Invoice routes
api/routers/factures.py - Payment routes
api/routers/versements.py - Product routes
api/routers/produits.py - Field tour routes
api/routers/tournee.py - Administration routes
api/routers/admin.py - API database access
api/db.py - API dependencies
api/deps.py
Shared services
- Desktop data and stock logic
modules/core.py - Sales stock transactions
modules/stock_service.py - Pricing rules
api/princing.py
Persistence
- SQLite database
database.py
Other components
- Staff operator
- Portal client
- Field seller
Connections 39
- Staff operator → Desktop navigation: uses
modules/app.py - Desktop navigation → Purchases: opens
modules/app.py - Desktop navigation → Sales: opens
modules/app.py - Desktop navigation → Product catalog: opens
modules/app.py - Desktop navigation → Customer accounts: opens
modules/app.py - Desktop navigation → Invoice management: opens
modules/app.py - Desktop navigation → Payments and receipts: opens
modules/app.py - Desktop navigation → Returns: opens
modules/app.py - Desktop navigation → Account situation: opens
modules/app.py - Desktop navigation → Sales analytics: opens
modules/app.py - Desktop navigation → Dashboard: opens
modules/app.py - Purchases → Purchase editor: uses
modules/bonachatpage.py - Sales → Purchase editor: uses
modules/bonventepage.py - Sales → Invoicing: opens
modules/bonventepage.py - Sales → Counter sales: opens
modules/bonventepage.py - Invoice management → Invoicing: opens
modules/facturepage.py - Desktop navigation → Stock movements: opens
modules/app.py - Desktop navigation → Sales stock transactions: delegates
- Desktop data and stock logic → Sales stock transactions: supports
modules/stock_service.py - Desktop data and stock logic → Pricing rules: imports
modules/core.py - Purchase editor → Pricing rules: uses
modules/bondialog.py - Desktop data and stock logic → API database access: uses
modules/core.py - Portal client → Portal API: requests
api/main.py - Field seller → Portal API: requests
- Portal API → Authentication routes: registers
api/main.py - Portal API → Client account routes: registers
api/main.py - Portal API → Order routes: registers
api/main.py - Portal API → Sales routes: registers
api/main.py - Portal API → Invoice routes: registers
api/main.py - Portal API → Payment routes: registers
api/main.py - Portal API → Product routes: registers
api/main.py - Portal API → Field tour routes: registers
api/main.py - Portal API → Administration routes: registers
api/main.py - Client account routes → Pricing rules: resolves prices
api/routers/clients.py - Order routes → Pricing rules: uses
api/routers/commandes.py - Portal API → API database access: initializes
api/main.py - API database access → SQLite database: stores data
api/db.py - Authentication routes → API dependencies: uses auth
api/routers/auth.py - Client account routes → API dependencies: uses dependencies
api/routers/clients.py