How g-ravikumar11/yerp works
Y ERP is a civil-contracting ERP whose central workflow tracks an order from item master through measurement, billing and payment, alongside procurement, stock, site operations and project profitability. The web app presents these workflows; the FastAPI backend and SQLAlchemy models provide the server-side operations and persistent state. The README documents major capabilities and their business flow; source excerpts and the index support selected backend relationships, but many feature implementations were not sampled, so undocumented links are omitted.
Main entry points: routers HTTP API · clientorders Work orders · client_billing.py Billing rules · projects Project profit
Components 21
Web application
- ERP screens
frontend/src/features
Work and commercial flow
- Item master
frontend/src/features/items - Work orders
frontend/src/features/clientorders - Measurement book
frontend/src/features/measurement - Client RA bills
frontend/src/features/clientbook - Payments and retention
frontend/src/features/money - Subcontract work
frontend/src/features/subbills
Site operations
- Purchasing and receipt
frontend/src/features/purchaseorders - Stock and issues
frontend/src/features/stock - Site diary
frontend/src/features/diary - Project profit
frontend/src/features/projects - AI planning
frontend/src/features/schedule
Backend platform
- HTTP API
backend/app/routers - Order handling
backend/app/routers/client_orders.py - Billing rules
backend/app/services/client_billing.py - Business documents
backend/app/documents/forms.py - AI provider client
backend/app/ai/llm_client.py - Identity and access
backend/app/core/auth.py - ERP database
backend/app/db/session.py - Application startup
backend/app/core/application.py
Other components
- Owner and staff
Connections 21
- Owner and staff → ERP screens: uses
README.md - Item master → Work orders: supplies codes
README.md - Work orders → Measurement book: measured in
README.md - Measurement book → Client RA bills: supports claims
README.md - Client RA bills → Payments and retention: paid and retained
README.md - Work orders → Purchasing and receipt: drives purchasing
README.md - Purchasing and receipt → Stock and issues: receipts post
README.md - Stock and issues → Project profit: feeds material cost
README.md - Site diary → Project profit: feeds site costs
README.md - Work orders → Project profit: anchors job result
README.md - Subcontract work → HTTP API: uses endpoints
- AI planning → HTTP API: uses endpoints
- ERP screens → HTTP API: requests data
- HTTP API → Order handling: routes order requests
- HTTP API → Billing rules: delegates billing
backend/app/routers/client_billing.py - Billing rules → ERP database: reads and writes
backend/app/services/client_billing.py - Billing rules → Business documents: provides bill data
backend/app/documents/forms.py - Order handling → ERP database: reads and writes
backend/app/routers/client_orders.py - HTTP API → Identity and access: checks access
backend/app/routers/client_orders.py - Application startup → ERP database: initializes
backend/app/core/application.py - AI planning → AI provider client: requests suggestions