How huaye0517/erp works
This is a Django ERP whose main user workflow is entering the web application to manage sales, purchasing, inventory, and supporting organization and master data, with records persisted in the configured database. A separate integration pulls sales orders, warehouses, goods, and stock from Jackyun into the ERP; warehouse and goods data are prerequisites for inventory matching. The README also documents workflow approvals and bulk imports. The tree and sampled files establish the modules and Jackyun client, but the domain views, models, and sync implementations were not sampled, so internal call wiring is shown conservatively.
Main entry points: urls.py Web routes · settings.py ERP database · client.py API client · sync.py Jackyun sync
Components 18
ERP access
- Web routes
mis/urls.py
Business operations
- Sales management
sale/views.py - Purchasing
purchase/views.py - Inventory
invent/views.py - HR
hr/views.py - Self-service
selfhelp/views.py
ERP foundations
- Master data
basedata/views.py - Organization
organ/views.py - Workflow approvals
workflow/views.py - System configuration
syscfg/views.py
Jackyun integration
- Jackyun sync
jackyun/sync.py - Goods sync
jackyun/sync_goods.py - Warehouse sync
jackyun/sync_warehouse.py - Stock sync
jackyun/sync_inventory.py - API client
jackyun/client.py
Persistence
- ERP database
mis/settings.py
Other components
- ERP user
- Jackyun platform
Connections 24
- ERP user → Web routes: opens
- Web routes → Sales management: routes requests
- Web routes → Purchasing: routes requests
- Web routes → Inventory: routes requests
- Web routes → HR: routes requests
- Web routes → Self-service: routes requests
- Web routes → Master data: routes requests
- Web routes → Organization: routes requests
- Web routes → Workflow approvals: routes requests
- Web routes → System configuration: routes requests
- Jackyun sync → API client: uses API client
- Goods sync → API client: requests goods
- Warehouse sync → API client: requests warehouses
- Stock sync → API client: requests stock
- API client → Jackyun platform: sends requests
- Jackyun platform → API client: returns data
- Jackyun sync → ERP database: saves ERP data
- Goods sync → ERP database: saves ERP data
- Warehouse sync → ERP database: saves ERP data
- Stock sync → ERP database: matches and saves
- Sales management → ERP database: reads and writes
- Purchasing → ERP database: reads and writes
- Inventory → ERP database: reads and writes
- Master data → ERP database: reads and writes