How kheang1409/modular-erp works
Open ERP is a company-scoped modular ERP: users work through a Blazor/API host to manage master data, leads, sales and purchasing documents, stock, accounting, and reports. Business modules own their persistence and expose public contracts; the platform provides organization, access, audit, and module-management services. The principal flow is represented through host-to-module dispatch and module-owned services to their stores; those dispatch edges are illustrative and marked unverified because the relevant endpoint wiring was not sampled. README capability statements preserve reporting and administration branches beyond sampled code.
Main entry points: Program.cs Web host · ReportingService.cs Reports and exports · QuotationService.cs Sales documents · ContactService.cs Contacts
Components 25
Host and experience
- Web host
src/Platform/Erp.Host/Program.cs
Business workflows
- Contacts
src/Modules/Contacts/ContactService.cs - Contacts store
src/Modules/Contacts/ContactsDbContext.cs - Products
src/Modules/Products/ProductService.cs - Products store
src/Modules/Products/ProductsDbContext.cs - CRM pipeline
src/Modules/Crm/LeadService.cs - CRM store
src/Modules/Crm/CrmDbContext.cs - Sales documents
src/Modules/Sales/QuotationService.cs - Sales store
src/Modules/Sales/SalesDbContext.cs - Purchasing
src/Modules/Purchasing/PurchaseOrderService.cs - Purchasing store
src/Modules/Purchasing/PurchasingDbContext.cs - Inventory and stock
src/Modules/Inventory/InventoryService.cs - Inventory store
src/Modules/Inventory/InventoryDbContext.cs
Finance and reporting
- Accounting workflows
src/Modules/Accounting/GeneralLedgerService.cs - Invoices and bills
src/Modules/Accounting/CustomerInvoiceService.cs - Payments
src/Modules/Accounting/PaymentService.cs - Accounting store
src/Modules/Accounting/AccountingDbContext.cs - Reports and exports
src/Modules/Reporting/ReportingService.cs
Platform services
- Organization and access
src/Platform/Erp.Infrastructure/Persistence/OrganizationAdministrationService.cs - Platform store
src/Platform/Erp.Infrastructure/Persistence/PlatformDbContext.cs - Role administration
src/Platform/Erp.Infrastructure/Security/RoleAdministrationService.cs
Module extensions
- Module packages
src/Platform/Erp.ModuleSystem/ModulePackageManager.cs - Manifest parsing
src/Platform/Erp.ModuleSystem/ModuleManifestParser.cs - Module CLI
src/Tools/Erp.Cli/Program.cs
Other components
- ERP user
Connections 29
- ERP user → Web host: uses
README.md - Web host → Contacts: dispatches
- Web host → Products: dispatches
- Web host → CRM pipeline: dispatches
- Web host → Sales documents: dispatches
- Web host → Purchasing: dispatches
- Web host → Inventory and stock: dispatches
- Web host → Accounting workflows: dispatches
- Web host → Reports and exports: dispatches
- Contacts → Contacts store: reads and writes
src/Modules/Contacts/ContactService.cs - Products → Products store: reads and writes
src/Modules/Products/ProductService.cs - CRM pipeline → CRM store: reads and writes
src/Modules/Crm/LeadService.cs - CRM pipeline → Contacts: resolves contacts
src/Modules/Crm/LeadService.cs - Sales documents → Sales store: reads and writes
src/Modules/Sales/QuotationService.cs - Sales documents → Contacts: resolves customers
src/Modules/Sales/QuotationService.cs - Purchasing → Purchasing store: reads and writes
src/Modules/Purchasing/PurchaseOrderService.cs - Inventory and stock → Inventory store: reads and writes
src/Modules/Inventory/InventoryService.cs - Accounting workflows → Accounting store: reads and writes
src/Modules/Accounting/GeneralLedgerService.cs - Invoices and bills → Accounting store: reads and writes
src/Modules/Accounting/CustomerInvoiceService.cs - Invoices and bills → Accounting workflows: uses ledger
src/Modules/Accounting/CustomerInvoiceService.cs - Payments → Accounting store: reads and writes
src/Modules/Accounting/PaymentService.cs - Reports and exports → Sales documents: summarizes
- Reports and exports → Purchasing: summarizes
- Reports and exports → Inventory and stock: summarizes
- Reports and exports → Accounting workflows: summarizes
- Organization and access → Platform store: reads and writes
src/Platform/Erp.Infrastructure/Persistence/OrganizationAdministrationService.cs - Role administration → Platform store: reads and writes
src/Platform/Erp.Infrastructure/Security/RoleAdministrationService.cs - Module CLI → Module packages: runs commands
src/Tools/Erp.Cli/Program.cs - Module packages → Manifest parsing: parses manifests