How kudus-jall/kono-trade-sales-inventory works
Kono Trade is a Flask business-management app for trading workspaces. Users register or sign in, then manage business-scoped inventory, purchases, sales, payments, returns and expenses; owners also administer the workspace and review reports. These workflows persist to SQLite or PostgreSQL and feed receipts, notifications, exports and insights. The graph preserves the README’s major capabilities while keeping route modules distinct. Some links are documented at product level; unsampled route internals are not inferred beyond that evidence.
Main entry points: factory.py App factory · common.py Shared business services · database.py Database access and schema · auth.py Accounts and access
Components 20
App and Access
- Flask entry point
app.py - App factory
kono_trade/factory.py - Accounts and access
kono_trade/routes/auth.py - Business settings
kono_trade/routes/business.py
Business Operations
- Inventory
kono_trade/routes/inventory.py - Sales
kono_trade/routes/sales.py - Payments and expenses
kono_trade/routes/finance.py - Returns
kono_trade/routes/returns.py
Oversight and Tools
- Dashboard
kono_trade/routes/dashboard.py - Reports and exports
kono_trade/routes/reports.py - Administration
kono_trade/routes/admin.py - Encrypted backups
backup_db.py
Shared Platform
- Shared business services
kono_trade/services/common.py - Request and session hooks
kono_trade/web.py - Database access and schema
kono_trade/repositories/database.py - PostgreSQL compatibility
kono_trade/repositories/db_compat.py - Runtime configuration
kono_trade/config.py
Other components
- Business user
- Email service
- OpenAI-compatible provider
Connections 32
- Business user → Flask entry point: uses
README.md - Flask entry point → App factory: creates app
app.py - App factory → Runtime configuration: loads defaults
kono_trade/factory.py - App factory → Request and session hooks: registers hooks
kono_trade/factory.py - App factory → Accounts and access: registers routes
kono_trade/factory.py - App factory → Business settings: registers routes
kono_trade/factory.py - App factory → Dashboard: registers routes
kono_trade/factory.py - App factory → Payments and expenses: registers routes
kono_trade/factory.py - App factory → Inventory: registers routes
kono_trade/factory.py - App factory → Reports and exports: registers routes
kono_trade/factory.py - App factory → Returns: registers routes
kono_trade/factory.py - App factory → Sales: registers routes
kono_trade/factory.py - App factory → Administration: registers routes
kono_trade/factory.py - App factory → Database access and schema: initializes schema
kono_trade/factory.py - Request and session hooks → Database access and schema: opens connection
kono_trade/web.py - Database access and schema → PostgreSQL compatibility: adapts PostgreSQL
kono_trade/repositories/database.py - Business user → Accounts and access: registers or signs in
README.md - Business user → Business settings: configures workspace
README.md - Business user → Inventory: manages stock
README.md - Business user → Sales: records sales
README.md - Business user → Payments and expenses: records payments
README.md - Business user → Returns: records returns
README.md - Business user → Reports and exports: reviews and exports
README.md - Business user → Dashboard: views overview
README.md - Business user → Administration: administers workspace
README.md - Business user → Encrypted backups: runs backup
README.md - Accounts and access → Email service: sends recovery email
- Business settings → OpenAI-compatible provider: configures optional insights
README.md - Reports and exports → Shared business services: uses shared helpers
- Sales → Shared business services: uses shared helpers
- Returns → Shared business services: uses shared helpers
- Shared business services → Database access and schema: queries business data
kono_trade/services/common.py