How emiroloji/dental-erp works
Dental ERP is a multi-tenant dental-clinic inventory and management monolith. Clinic staff manage organization-scoped catalog and stock through workflows for purchasing, receipt, movement, transfers, counts and returns; reports and alerts follow from that operational data. Separate capabilities cover finance, forecasting, natural-language report queries, medical-product tracking and platform administration. The README identifies StockMovementService as the sole stock-change entry point. Connections below follow documented workflows and sampled source references; some subsystem internals were not sampled.
Main entry points: pages Clinic workspace · StockMovementService.php Stock movement gateway · User.php Users and permissions · PurchaseOrderService.php Purchasing and receipts
Components 21
Tenant and access
- Users and permissions
app/Models/User.php - Organization structure
app/Domain/Organization/Models/Organization.php
Inventory operations
- Product catalog
app/Domain/Catalog/Models/Product.php - Purchasing and receipts
app/Domain/Purchasing/Services/PurchaseOrderService.php - Stock movement gateway
app/Domain/Stock/Services/StockMovementService.php - Lots and movements
app/Domain/Stock/Models/StockMovement.php - Branch transfers
app/Domain/Transfer/Services/TransferService.php - Stock counts
app/Domain/Inventory/Services/StockCountService.php - Supplier returns
app/Domain/Returns/Services/ReturnService.php - Stock alerts
app/Domain/Stock/Services/StockAlertService.php - Medical product tracking
app/Domain/Uts/Services/UtsConnectionService.php
Reports and insights
- Reports and exports
app/Domain/Reporting/Services/ReportExportService.php - Consumption forecasts
app/Domain/Forecasting/Services/ConsumptionForecastService.php - Natural-language reports
app/Domain/Assistant/Services/NaturalQueryService.php
Finance
- Finance ledger
app/Domain/Finance/Services/LedgerService.php - Finance reports
app/Domain/Finance/Reports/FinanceReportExporter.php
Platform services
- Platform administration
app/Domain/Platform/Services/OrganizationAdminService.php - Database backups
app/Domain/Platform/Services/DatabaseBackupService.php - Audit log
app/Domain/Audit/Models/AuditLog.php
Other components
- Clinic staff
- Clinic workspace
resources/views/pages
Connections 24
- Clinic staff → Clinic workspace: uses
README.md - Clinic workspace → Users and permissions: authorizes through
- Users and permissions → Organization structure: scopes access
app/Models/User.php - Clinic workspace → Product catalog: manages
README.md - Clinic workspace → Purchasing and receipts: orders and receives
README.md - Purchasing and receipts → Stock movement gateway: records receipt
app/Domain/Purchasing/Services/PurchaseOrderService.php - Clinic workspace → Stock movement gateway: records stock activity
README.md - Stock movement gateway → Lots and movements: writes movements
app/Domain/Stock/Services/StockMovementService.php - Clinic workspace → Branch transfers: requests transfers
README.md - Clinic workspace → Stock counts: records counts
README.md - Clinic workspace → Supplier returns: manages returns
README.md - Clinic workspace → Stock alerts: reviews alerts
README.md - Clinic workspace → Reports and exports: requests reports
README.md - Clinic workspace → Consumption forecasts: requests forecasts
README.md - Clinic workspace → Natural-language reports: asks report questions
README.md - Natural-language reports → Reports and exports: executes report intent
app/Domain/Assistant/Services/NaturalQueryService.php - Clinic workspace → Medical product tracking: tracks medical products
README.md - Clinic workspace → Finance ledger: manages finances
README.md - Finance ledger → Finance reports: supplies ledger data
- Clinic workspace → Finance reports: requests finance reports
README.md - Clinic staff → Platform administration: platform administration
README.md - Platform administration → Organization structure: manages organizations
README.md - Stock movement gateway → Audit log: audits changes
- Clinic workspace → Database backups: administers backups