How youceftahir-dev/appalimgen works
El Amine ERP is a Django business application for sales, purchasing, invoicing, inventory, customers and suppliers, expenses, and printing, with a versioned mobile API. The principal workflow is staff using the web application to manage inventory and commercial transactions, with transaction services updating domain records and supporting invoices or print payloads. The graph also preserves the documented API, security, reporting, and backup capabilities. Some subsystem links rely on README descriptions or SOURCE INDEX references; unsampled views and routes limit certainty about their exact runtime wiring.
Main entry points: models.py Products and stock · urls.py ERP web app · services.py Transaction services · views.py REST API
Components 25
Web and identity
- ERP web app
gestio_stock/urls.py - Accounts and roles
apps/accounts/permissions.py
Inventory operations
- Inventory workflows
apps/inventory/views.py - Products and stock
apps/inventory/models.py - Stock operations
apps/inventory/services.py - Client geocoding
apps/inventory/geocoding.py - Product pricing
apps/inventory/pricing.py
Commerce and expenses
- Sales and purchases
apps/commerce/views.py - Commerce records
apps/commerce/models.py - Transaction services
apps/commerce/services.py - Product search
apps/commerce/product_search.py - Expense management
apps/expenses/views.py - Expense records
apps/expenses/models.py
Platform services
- Company and audit data
apps/core/models.py - Security services
apps/core/security.py - Dashboard and reports
apps/core/dashboard.py - Database backup
apps/core/backup.py
Mobile API and printing
- REST API
apps/api/views.py - JWT authentication
apps/api/authentication.py - API serializers
apps/api/serializers.py - OpenAPI schema
apps/api/schema.py - Printer profiles
apps/printing/models.py - Print payloads
apps/printing/services.py
Other components
- Staff user
- Mobile/API client
Connections 30
- Staff user → ERP web app: uses
- ERP web app → Accounts and roles: authenticates
- ERP web app → Inventory workflows: routes requests
- ERP web app → Sales and purchases: routes requests
- ERP web app → Expense management: routes requests
- Inventory workflows → Products and stock: manages
- Inventory workflows → Client geocoding: uses
- Products and stock → Product pricing: validates prices
apps/inventory/models.py - Products and stock → Stock operations: stock changes
apps/inventory/services.py - Sales and purchases → Transaction services: processes transactions
- Transaction services → Commerce records: updates
apps/commerce/services.py - Transaction services → Products and stock: reads stock data
apps/commerce/services.py - Transaction services → Product pricing: gets sale price
apps/commerce/services.py - Commerce records → Products and stock: references products
apps/commerce/models.py - Product search → Products and stock: searches products
apps/commerce/product_search.py - Product search → Product pricing: uses pricing
apps/commerce/product_search.py - Expense management → Expense records: records expenses
apps/expenses/views.py - Expense management → Accounts and roles: checks permissions
apps/expenses/views.py - Expense records → Products and stock: references suppliers
apps/expenses/models.py - Security services → Company and audit data: writes audit events
apps/core/security.py - Dashboard and reports → Company and audit data: reports activity
- Mobile/API client → REST API: calls API
- REST API → JWT authentication: authenticates requests
- REST API → API serializers: serializes data
- REST API → OpenAPI schema: documents endpoints
- JWT authentication → Accounts and roles: checks shared roles
apps/api/authentication.py - Print payloads → Printer profiles: builds payloads
apps/printing/services.py - Print payloads → Commerce records: formats invoices
- Print payloads → Company and audit data: reads company settings
apps/printing/services.py - Database backup → Company and audit data: backs up database