How hunghero32/erp-365 works
ERP-365 is a multi-branch enterprise management application spanning inventory, purchasing, sales, finance, CRM, HR, warranty service, and administration. The principal workflow is a staff member submitting an operational request, which a module controller delegates to business services that read or update persistent records; PO/SD and transfer flows also use Livewire components. The README documents AI assistance, external webhooks, and shared integrations as additional capabilities. The tree and selected excerpts support the module boundaries, but not detailed wiring among all services or integrations.
Main entry points: Models Business records · Livewire Operational UI flows · AI AI and retrieval services · WMS Inventory services
Components 25
Core Operations
- Operational UI flows
app/Livewire - Inventory and products
app/Http/Controllers/WMS - Inventory services
app/Services/WMS
Business Modules
- Purchasing
app/Http/Controllers/PO - Purchasing services
app/Services/PO - Sales and returns
app/Http/Controllers/SD - Sales services
app/Services/SD - Customer relations
app/Http/Controllers/CRM - CRM services
app/Services/CRM - Finance and reports
app/Http/Controllers/FA - Finance services
app/Services/FA
People and Service
- Workforce management
app/Http/Controllers/HRM - Workforce services
app/Services/HRM - Warranty and testing
app/Http/Controllers/ASM - Warranty services
app/Services/ASM
Platform Services
- Access and administration
app/Http/Controllers/ADMIN - Business records
app/Models - MariaDB
- Commerce webhooks
app/Http/Controllers/CRM - Notifications and shared tools
app/Http/Controllers/SHARE
AI Assistance
- AI assistant UI
app/Livewire/GlobalAiAssistant.php - AI and retrieval services
app/Services/AI
Other components
- Staff member
- Pancake and WooCommerce
- Ollama LLM
Connections 35
- Staff member → Operational UI flows: uses
- Staff member → Inventory and products: submits request
- Staff member → Purchasing: submits request
- Staff member → Sales and returns: submits request
- Staff member → Customer relations: submits request
- Staff member → Finance and reports: submits request
- Staff member → Workforce management: submits request
- Staff member → Warranty and testing: submits request
- Staff member → Access and administration: administers
- Operational UI flows → Purchasing services: business operations
- Operational UI flows → Sales services: business operations
- Operational UI flows → Inventory services: transfer flows
- Inventory and products → Inventory services: delegates
- Purchasing → Purchasing services: delegates
- Sales and returns → Sales services: delegates
- Customer relations → CRM services: delegates
- Finance and reports → Finance services: delegates
- Workforce management → Workforce services: delegates
- Warranty and testing → Warranty services: delegates
- Commerce webhooks → CRM services: processes events
- Pancake and WooCommerce → Commerce webhooks: sends events
- Access and administration → Business records: reads and updates
- Inventory services → Business records: reads and updates
- Purchasing services → Business records: reads and updates
- Sales services → Business records: reads and updates
- CRM services → Business records: reads and updates
- Finance services → Business records: reads and updates
- Workforce services → Business records: reads and updates
- Warranty services → Business records: reads and updates
- Business records → MariaDB: persists records
- Staff member → AI assistant UI: asks questions
- AI assistant UI → AI and retrieval services: submits query
- AI and retrieval services → Ollama LLM: requests generation
- AI and retrieval services → MariaDB: retrieves business context
- Notifications and shared tools → Business records: uses shared records