How gh-yeh/wehbegroup works
WehbeGroup is a Django wholesale catalog, inventory, and web POS. Staff browse or search products, build a session-backed ticket, and check out to create client orders; administrators also synchronize spreadsheet inventory, manage catalog data, and oversee salesman pricing. The graph separates those domain stages while showing the shared request-routing, persistence, form, and PDF layers. Some view bodies and templates were not sampled, so feature links rely on explicit route declarations or README capability descriptions rather than assumed internal calls.
Main entry points: urls.py URL routing · models.py Domain models · views.py Catalog browsing · utils.py PDF rendering
Components 19
Catalog and POS
- Catalog browsing
catalog/views.py - Live search
catalog/views.py - Ticket building
catalog/views.py - Order checkout
catalog/views.py - Catalog pages
catalog/templates/catalog
Inventory and Admin
- Inventory sync
catalog/views.py - Catalog editing
catalog/views.py - Admin registration
catalog/admin.py
Clients and Sales
- Client records
catalog/views.py - Order records
catalog/views.py - Salesman pricing
catalog/views.py - Sales dashboard
catalog/views.py
Shared Backend
- URL routing
catalog/urls.py - Item form
catalog/forms.py - Domain models
catalog/models.py - SQLite database
wehbe_backend/settings.py - PDF rendering
catalog/utils.py - PDF templates
catalog/templates/catalog
Other components
- Staff user
Connections 28
- Staff user → URL routing: sends requests
catalog/urls.py - URL routing → Catalog browsing: routes catalog
catalog/urls.py - URL routing → Live search: routes search
catalog/urls.py - URL routing → Ticket building: routes ticket actions
catalog/urls.py - URL routing → Order checkout: routes checkout
catalog/urls.py - URL routing → Inventory sync: routes sync
catalog/urls.py - URL routing → Catalog editing: routes editing
catalog/urls.py - URL routing → Client records: routes clients
catalog/urls.py - URL routing → Order records: routes orders
catalog/urls.py - URL routing → Salesman pricing: routes pricing
catalog/urls.py - URL routing → Sales dashboard: routes dashboard
catalog/urls.py - Catalog browsing → Domain models: queries catalog
catalog/views.py - Live search → Domain models: queries items
catalog/views.py - Ticket building → Domain models: loads items
catalog/views.py - Order checkout → Domain models: creates orders
catalog/views.py - Inventory sync → Domain models: syncs inventory
README.md - Catalog editing → Item form: uses form
catalog/views.py - Item form → Domain models: models item
catalog/forms.py - Admin registration → Domain models: registers models
catalog/admin.py - Client records → Domain models: manages clients
catalog/views.py - Order records → Domain models: manages orders
catalog/views.py - Salesman pricing → Domain models: updates overrides
catalog/views.py - Sales dashboard → Domain models: manages profiles
catalog/views.py - Domain models → SQLite database: persists records
wehbe_backend/settings.py - Catalog browsing → Catalog pages: renders catalog
README.md - Catalog browsing → PDF rendering: generates catalog PDF
README.md - Order records → PDF rendering: generates receipts
README.md - PDF rendering → PDF templates: renders templates
catalog/utils.py