How khurt-code/alvanz_stock_captone-project works
AlvanzStock is a Django inventory and point-of-sale application. Staff sign in, manage the product catalog and stock movements, or cashiers complete a sale that records receipt line items and decrements stock; managers review sales and inventory reports. The graph separates authentication, inventory operations, checkout, and reporting, with models as the internal data layer. README capabilities such as low-stock alerts, real-time stock, and reports are represented; routes and views not excerpted are linked only where the README or source index supports them.
Main entry points: inventory/models.py Products & stock records · pos/views.py Checkout validation · pos/models.py Sales & line items · inventory/views.py Catalog management
Components 18
Accounts & access
- Sign in
accounts/views.py - Roles & users
accounts/models.py
Inventory operations
- Catalog management
inventory/views.py - Product & category forms
inventory/forms.py - Stock movements
inventory/views.py - Products & stock records
inventory/models.py
Point of sale
- POS screen
pos/views.py - Checkout validation
pos/views.py - Sale recording
pos/models.py - Sales & line items
pos/models.py - Receipt
pos/views.py
Monitoring & reports
- Real-time stock
inventory/views.py - Low-stock alerts
inventory/views.py - Dashboard
inventory/views.py - Sales history
pos/views.py - Sales report
pos/views.py - Inventory report
pos/views.py
Other components
- Store staff
Connections 30
- Store staff → Sign in: signs in
README.md - Sign in → Roles & users: authenticates
- Store staff → Catalog management: manages catalog
- Catalog management → Product & category forms: validates input
inventory/views.py - Catalog management → Products & stock records: reads and writes
inventory/views.py - Store staff → Stock movements: records movement
- Stock movements → Product & category forms: validates input
inventory/views.py - Stock movements → Products & stock records: creates movements
inventory/views.py - Products & stock records → Products & stock records: updates quantity
inventory/models.py - Store staff → POS screen: opens POS
- POS screen → Products & stock records: loads products
pos/views.py - POS screen → Checkout validation: submits cart
pos/views.py - Checkout validation → Products & stock records: checks stock
pos/views.py - Checkout validation → Sale recording: records sale
pos/views.py - Sale recording → Sales & line items: creates sale items
pos/models.py - Sale recording → Products & stock records: records stock-out
pos/models.py - Checkout validation → Receipt: returns receipt ID
pos/views.py - Store staff → Real-time stock: monitors stock
- Real-time stock → Products & stock records: reads quantities
inventory/views.py - Store staff → Low-stock alerts: checks alerts
- Low-stock alerts → Products & stock records: finds low stock
inventory/views.py - Store staff → Dashboard: views overview
- Dashboard → Products & stock records: aggregates stock
inventory/views.py - Dashboard → Sales & line items: reads sales
inventory/views.py - Store staff → Sales history: reviews sales
- Sales history → Sales & line items: filters sales
pos/views.py - Store staff → Sales report: requests report
- Sales report → Sales & line items: aggregates sales
pos/views.py - Store staff → Inventory report: requests valuation
- Inventory report → Products & stock records: values inventory
pos/views.py