How samuraimaid/mc-larens_erp2 works
MC-LARENS ERP 2.0 is an automotive workshop and point-of-sale system. Its principal workflow spans sales and invoicing, workshop jobs, quality approval, then delivery with customer tracking; the README also documents inventory, payroll, vehicle catalog, and reporting capabilities. The frontend routing and authentication relationships are supported by excerpts; most domain-to-API wiring is not sampled, so those links are omitted. Product workflows and capabilities are retained as documented, not as claims of inspected implementation.
Main entry points: App.js Application router · auth.py Authentication API · WorkOrdersPage.jsx Workshop and KDS · QualityControlPage.jsx Quality control
Components 19
ERP frontend
- Application router
frontend/src/App.js - Main workspace
frontend/src/components/layout/MainLayout.jsx - Session context
frontend/src/context/AuthContext.js - Sales and cashier
frontend/src/pages/SalesPage.jsx - Quotations
frontend/src/pages/QuotationsPage.jsx - Inventory management
frontend/src/pages/InventoryPage.jsx
Business operations
- Workshop and KDS
frontend/src/pages/WorkOrdersPage.jsx - Quality control
frontend/src/pages/QualityControlPage.jsx - Delivery and tracking
frontend/src/pages/DeliveriesPage.jsx - Vehicle catalog
frontend/src/pages/CatalogPage.jsx
Platform services
- Authentication API
backend/api/v1/auth.py - MongoDB session
backend/db/session.py - Business alerts
backend/services/weekly_business_sentinel.py - Cloud backup
backend/services/terabox_backup_service.py - Backup configuration
backend/services/terabox_config.py
People and control
- Payroll and HR
backend/domains/hr/payroll_engine.py - Approvals
frontend/src/pages/ApprovalsPage.jsx - Business reports
frontend/src/pages/ReportsPage.jsx
Other components
- ERP user
Connections 22
- ERP user → Application router: uses
README.md - Application router → Session context: provides session
frontend/src/App.js - Application router → Main workspace: routes through
frontend/src/App.js - Main workspace → ERP user: checks session
frontend/src/components/layout/MainLayout.jsx - Application router → Sales and cashier: routes to
frontend/src/App.js - Application router → Quotations: routes to
frontend/src/App.js - Application router → Inventory management: routes to
frontend/src/App.js - Application router → Workshop and KDS: routes to
frontend/src/App.js - Application router → Quality control: routes to
- Application router → Delivery and tracking: routes to
frontend/src/App.js - Application router → Vehicle catalog: routes to
frontend/src/App.js - Application router → Approvals: routes to
frontend/src/App.js - Application router → Business reports: routes to
frontend/src/App.js - Session context → Authentication API: checks session
frontend/src/context/AuthContext.js - Authentication API → MongoDB session: reads attempts
backend/api/v1/auth.py - Authentication API → Business alerts: sends alert
backend/api/v1/auth.py - Payroll and HR → MongoDB session: queries records
- Cloud backup → Backup configuration: loads settings
backend/services/terabox_backup_service.py - Cloud backup → MongoDB session: backs up data
- Sales and cashier → Workshop and KDS: work proceeds
README.md - Workshop and KDS → Quality control: requires approval
README.md - Quality control → Delivery and tracking: enables release
README.md