How q86865511/erpsystem works
This is a modular-monolith manufacturing ERP with a React client, Spring backend, and PostgreSQL persistence. The flagship workflow runs procurement through receipt and vendor billing, production through WIP issue and completion, and sales through shipment, invoicing, and collection; each business posting is documented as transactional with the ledger. Reporting reconciles inventory and AP/AR subledgers to GL balances. The graph preserves the documented HR, master-data, audit, and optional AI/MCP capabilities; unsampled module internals are represented at their exact directories, and links rely on README documentation where source excerpts were unavailable.
Main entry points: client.ts API client · ledger Double-entry ledger · purchasing Procurement · inventory Inventory
Components 20
Web client
- ERP interface
frontend/src - Feature screens
frontend/src/features - API client
frontend/src/api/client.ts
Access and assistance
- Identity and RBAC
src/main/java/com/erp/iam - ERP Copilot
src/main/java/com/erp/assistant - MCP access
mcp-server/src
Operations
- Master data
src/main/java/com/erp/masterdata - Procurement
src/main/java/com/erp/purchasing - Inventory
src/main/java/com/erp/inventory - Manufacturing
src/main/java/com/erp/manufacturing - Sales
src/main/java/com/erp/sales - Payments
src/main/java/com/erp/payments
Finance and control
- Double-entry ledger
src/main/java/com/erp/ledger - Reports and reconciliation
src/main/java/com/erp/reporting - PostgreSQL
Workforce and audit
- Human resources
src/main/java/com/erp/hr - Audit trail
src/main/java/com/erp/audit
Other components
- ERP user
- Anthropic Claude
- Claude Desktop or Code
Connections 37
- ERP user → ERP interface: uses
README.md - ERP interface → Feature screens: renders
README.md - Feature screens → API client: requests
README.md - API client → Identity and RBAC: authenticates
README.md - API client → Master data: calls REST
README.md - API client → Procurement: calls REST
README.md - API client → Inventory: calls REST
README.md - API client → Manufacturing: calls REST
README.md - API client → Sales: calls REST
README.md - API client → Payments: calls REST
README.md - API client → Double-entry ledger: calls REST
README.md - API client → Reports and reconciliation: calls REST
README.md - API client → Human resources: calls REST
README.md - Procurement → Inventory: posts receipt
README.md - Procurement → Double-entry ledger: posts bills
README.md - Manufacturing → Inventory: issues and receives
src/main/java/com/erp/manufacturing/application/WorkOrderService.java - Manufacturing → Double-entry ledger: posts WIP
src/main/java/com/erp/manufacturing/application/WorkOrderService.java - Sales → Inventory: posts shipment
README.md - Sales → Double-entry ledger: posts invoices
README.md - Payments → Double-entry ledger: posts payments
README.md - Procurement → Payments: supplies payables
README.md - Sales → Payments: supplies receivables
README.md - Double-entry ledger → Reports and reconciliation: provides balances
README.md - Inventory → Reports and reconciliation: provides subledger
README.md - Procurement → Reports and reconciliation: provides AP data
README.md - Sales → Reports and reconciliation: provides AR data
README.md - Master data → Procurement: resolves master data
src/main/java/com/erp/purchasing/application/VendorBillService.java - Master data → Inventory: resolves master data
src/main/java/com/erp/inventory/application/InventoryQueryService.java - Reports and reconciliation → PostgreSQL: reads snapshot
README.md - Double-entry ledger → PostgreSQL: stores postings
README.md - ERP user → ERP Copilot: asks questions
README.md - ERP Copilot → Anthropic Claude: queries model
README.md - ERP Copilot → API client: executes REST tools
README.md - Claude Desktop or Code → MCP access: connects
README.md - MCP access → API client: calls ERP API
README.md - Human resources → Double-entry ledger: posts payroll
README.md - ERP Copilot → Audit trail: records actions
README.md