How erpro272/originial_erp works
Manufacturing ERP for Indian manufacturers, organized as a React client and a FastAPI modular monolith. The user-facing flow spans customer and catalog records, order intake and prioritization, factory planning, invoice review, and the broader purchasing, production, billing, and finance capabilities documented in the README. The planning engine is a distinct scheduling layer. Source excerpts are partial, so several documented domains appear without inferred runtime links; the API’s router registration and selected service calls are shown where supported.
Main entry points: main.py FastAPI application · App.tsx ERP web app · service.py Invoice processing · storage.py Encrypted file storage
Components 21
Web application
- ERP web app
frontend/src/app/App.tsx - Customer screens
frontend/src/modules/customers - Order screens
frontend/src/modules/orders - Planning screens
frontend/src/modules/planning - Invoice review
frontend/src/modules/invoices/ReviewPage.tsx - API client
frontend/src/api/client.ts
ERP API
- FastAPI application
backend/app/main.py
Platform services
- Tenant and audit data
backend/app/core/models.py - Encrypted file storage
backend/app/core/storage.py - AI extraction service
backend/app/ai/service.py
Business operations
- Customer management
backend/app/customers/service.py - Product catalog
backend/app/catalog/service.py - Orders and ranking
backend/app/orders/service.py - Factory planning
backend/app/planning/service.py - Scheduling engine
backend/app/planning/engine.py - Purchasing
backend/app/purchasing - Production
backend/app/production
Billing and finance
- Invoice processing
backend/app/invoices/service.py - Finance
backend/app/finance
Other components
- ERP user
- S3-compatible storage
Connections 16
- ERP user → ERP web app: uses
README.md - FastAPI application → Customer management: mounts routes
backend/app/main.py - FastAPI application → Product catalog: mounts routes
backend/app/main.py - FastAPI application → Orders and ranking: mounts routes
backend/app/main.py - FastAPI application → Factory planning: mounts routes
backend/app/main.py - FastAPI application → Invoice processing: mounts routes
backend/app/main.py - Orders and ranking → Product catalog: looks up products
backend/app/orders/service.py - Factory planning → Scheduling engine: computes plan
backend/app/planning/service.py - Invoice processing → Encrypted file storage: uses file storage
backend/app/invoices/service.py - Encrypted file storage → S3-compatible storage: stores objects
backend/app/core/storage.py - ERP web app → Customer screens: presents screens
- ERP web app → Order screens: presents screens
- ERP web app → Planning screens: presents screens
- ERP web app → Invoice review: presents screens
- API client → FastAPI application: calls API
- Invoice processing → AI extraction service: extracts invoice data