How muthaa/asiriapos works
AsiriaPOS is a Django POS backend whose main flow is staff authentication followed by API-driven checkout: checkout creates a sale and its lines, while sale signals record stock movement. The wider product includes stock control, purchasing/receiving, customer and business records, returns/refunds, cash sessions, split payments, and audit logging. The README also advertises analytics, M-Pesa, multi-location stock, and reservations; some of those implementation paths are not present in the sampled excerpts, so their links are documented or left unverified rather than inferred from names. Evidence is limited to the supplied README, SOURCE INDEX, and excerpts.
Main entry points: urls.py API routes · views.py Sales operations · products/models.py Stock control · sales/models.py Sales records
Components 20
Access & API
- API routes
AsiriaPOS/urls.py - Authentication
authentication/views.py - Business users
users/models.py
Sales & Payments
- Checkout & receipts
sales_views/views.py - Sales records
sales/models.py - Sales operations
sales/views.py - Cash & payments
sales/models.py - Returns & refunds
sales/models.py - Sales analytics
sales/views.py
Inventory
- Product operations
products/views.py - Stock control
products/models.py - Stock reservations
sales/models.py
Purchasing & Registry
- Purchase & receiving
purchases/views.py - Purchase records
purchases/models.py - Registry operations
registry/views.py - Customers & suppliers
registry/models.py
Security & Audit
- Role permissions
authentication/permissions.py - Audit log
Domain/models.py
Other components
- POS staff
- M-Pesa API
Connections 24
- POS staff → API routes: calls API
AsiriaPOS/urls.py - API routes → Authentication: routes auth
AsiriaPOS/urls.py - API routes → Checkout & receipts: routes checkout
AsiriaPOS/urls.py - API routes → Sales operations: routes sales
AsiriaPOS/urls.py - API routes → Product operations: routes products
AsiriaPOS/urls.py - API routes → Purchase & receiving: routes purchases
AsiriaPOS/urls.py - API routes → Registry operations: routes registry
AsiriaPOS/urls.py - Authentication → Business users: looks up user
authentication/views.py - Checkout & receipts → Sales records: creates sale lines
sales_views/views.py - Checkout & receipts → Stock control: loads products
sales_views/views.py - Sales records → Stock control: records stock movement
sales/models.py - Sales operations → Sales records: manages sales
sales/views.py - Sales operations → Audit log: logs voids
sales/views.py - Sales operations → Cash & payments: creates payments
sales/views.py - Sales operations → Returns & refunds: manages returns
sales/views.py - Sales operations → Stock reservations: creates reservations
sales/views.py - Product operations → Stock control: manages stock
products/views.py - Purchase & receiving → Purchase records: creates purchase
purchases/views.py - Purchase & receiving → Audit log: records audit
purchases/views.py - Registry operations → Customers & suppliers: manages registry
registry/views.py - Sales analytics → Sales records: reports on sales
sales/views.py - M-Pesa API → Cash & payments: mobile payment
- Sales operations → Role permissions: checks access
sales/views.py - Stock control → Stock control: supports locations
products/models.py