How upstairs-aura/mfl_erp works
MORE FUEL ERP is a Django-based operations and project-management ERP with shared identity, authorization, audit, files, and background jobs. The main workflow is staff reporting operational work, domain services applying business rules and recording state, then dashboards, reports, alerts, or external delivery surfacing results. The README documents several capabilities whose source directories are absent from the supplied tree; those are represented only where their implementation path is supported. Edges use README statements or SOURCE INDEX references; unsampled wiring is not inferred.
Main entry points: maintenance/services.py Fault tickets and lifecycle · regulatory/services.py Regulatory documents · reporting/services.py Module reports and exports · notifications/services.py Notification outbox and delivery
Components 24
Shared platform
- Authorization and scope
core/authz.py - Identity and shared records
core/models.py - Access and activity audit
core/audit.py - Secure attachments
core/files.py - Background job queue
core/jobs.py
Operations
- Fault tickets and lifecycle
maintenance/services.py - Provider SLA
sla/services.py - Repairs and maintenance plans
mtracker/services.py - Genset and ECG monitoring
forecourt/services.py - Regulatory documents
regulatory/services.py - Tank calibration
calibration/services.py - Asset register and inventory
Reporting and oversight
- Executive dashboard
executive/services.py - Maintenance analytics
maintenance/analytics.py - Module reports and exports
reporting/services.py
Automation and messaging
- AI assistant
ai_app/services.py - AI tools
maintenance/ai_tools.py - Automation runtime
automation_app/runtime.py - Reusable automation engine
packages/mf_automation/engine.py - Notification outbox and delivery
notifications/services.py - Email and WhatsApp channels
notifications/channels.py
Projects and administration
- Project Tracker
tracker/views.py - IT administration
itadmin/views.py
Other components
- ERP staff
Connections 39
- ERP staff → Fault tickets and lifecycle: reports faults
- ERP staff → Genset and ECG monitoring: records monitoring
- ERP staff → Regulatory documents: manages documents
- ERP staff → Tank calibration: records calibrations
- ERP staff → Project Tracker: manages projects
- ERP staff → IT administration: administers access
- Fault tickets and lifecycle → Provider SLA: confirms and dispatches
sla/services.py - Fault tickets and lifecycle → Repairs and maintenance plans: mirrors tickets
mtracker/services.py - Fault tickets and lifecycle → Asset register and inventory: reads asset records
maintenance/services.py - Fault tickets and lifecycle → Maintenance analytics: provides fault data
- Fault tickets and lifecycle → Module reports and exports: supplies report data
reporting/services.py - Genset and ECG monitoring → Executive dashboard: supplies dashboard data
executive/services.py - Fault tickets and lifecycle → Executive dashboard: supplies dashboard data
executive/services.py - Repairs and maintenance plans → Executive dashboard: supplies dashboard data
executive/services.py - Regulatory documents → Executive dashboard: supplies dashboard data
executive/services.py - Fault tickets and lifecycle → Secure attachments: stores attachments
maintenance/services.py - Regulatory documents → Secure attachments: stores document versions
regulatory/services.py - Tank calibration → Secure attachments: stores certificates
calibration/services.py - Fault tickets and lifecycle → Background job queue: enqueues work
maintenance/services.py - Regulatory documents → Background job queue: schedules expiry checks
regulatory/services.py - Tank calibration → Notification outbox and delivery: publishes alerts
calibration/services.py - Regulatory documents → Notification outbox and delivery: publishes alerts
regulatory/services.py - Fault tickets and lifecycle → Notification outbox and delivery: publishes operational alerts
maintenance/services.py - Notification outbox and delivery → Background job queue: queues delivery
notifications/services.py - Notification outbox and delivery → Email and WhatsApp channels: sends messages
notifications/services.py - Automation runtime → Reusable automation engine: uses rule engine
automation_app/runtime.py - Automation runtime → Background job queue: registers handlers
automation_app/runtime.py - AI assistant → AI tools: loads maintenance tools
ai_app/services.py - AI assistant → Authorization and scope: filters available tools
ai_app/services.py - IT administration → Authorization and scope: manages permissions
- Authorization and scope → Identity and shared records: checks roles and grants
core/authz.py - Fault tickets and lifecycle → Access and activity audit: records changes
maintenance/services.py - Regulatory documents → Access and activity audit: records changes
regulatory/services.py - Tank calibration → Access and activity audit: records changes
calibration/services.py - Authorization and scope → Access and activity audit: audits blocked changes
- Module reports and exports → Fault tickets and lifecycle: reads maintenance data
reporting/services.py - Module reports and exports → Genset and ECG monitoring: reads forecourt data
reporting/services.py - Module reports and exports → Regulatory documents: reads document data
reporting/services.py - Module reports and exports → Repairs and maintenance plans: reads plan data
reporting/services.py