How techontz/voucher-flow works
VouchFlow is a multi-tenant voucher-approval SaaS. Employees create and submit vouchers; configurable approval steps handle review, signing, approval or rejection, followed by separate cashier payment. Users then access dashboards and permission-aware reports, while company administrators manage workflows, branding and tenant operations. Web and Flutter clients share the Laravel API and database. The graph includes documented product branches whose implementation was not sampled; those links are evidenced by the README rather than implying unsampled code was inspected.
Main entry points: api.php Laravel REST API · Voucher.php Voucher records · WorkflowEngine.php Workflow engine · DashboardController.php Action queues
Components 18
Client applications
- Web client
web/app - Mobile client
app
API and access
- Laravel REST API
backend/routes/api.php - Authentication
backend/app/Http/Controllers/Api/AuthController.php - Tenant isolation
backend/app/Http/Middleware/ResolveTenant.php
Voucher operations
- Voucher records
backend/app/Models/Voucher.php - Workflow engine
backend/app/Services/WorkflowEngine.php - Workflow configuration
backend/app/Models/WorkflowStep.php - Action queues
backend/app/Http/Controllers/Api/DashboardController.php - Reports and exports
backend/app/Http/Controllers/Api/ReportController.php - Voucher documents
backend/app/Services/VoucherPdfService.php
Tenant platform
- Payment and billing
backend/app/Http/Controllers/Api/BillingController.php - Company branding
backend/app/Services/CompanyBranding.php - Platform operations
backend/app/Http/Controllers/Api/Platform/CompanyController.php - Notifications
backend/app/Services/Notifier.php - Audit history
backend/app/Services/AuditLogger.php - MySQL
Other components
- Company users
Connections 22
- Company users → Web client: uses
- Company users → Mobile client: uses
- Web client → Laravel REST API: calls
- Mobile client → Laravel REST API: calls
- Laravel REST API → Authentication: routes
- Laravel REST API → Tenant isolation: resolves tenant
- Laravel REST API → Voucher records: serves voucher API
- Workflow engine → Voucher records: updates
backend/app/Services/WorkflowEngine.php - Workflow engine → Workflow configuration: reads steps
backend/app/Services/WorkflowEngine.php - Action queues → Workflow engine: checks actions
backend/app/Http/Controllers/Api/DashboardController.php - Action queues → Voucher records: queries queues
backend/app/Http/Controllers/Api/DashboardController.php - Reports and exports → Voucher records: reports on
backend/app/Http/Controllers/Api/ReportController.php - Voucher records → Voucher documents: renders PDF
- Laravel REST API → Payment and billing: serves billing API
- Platform operations → Company branding: manages branding
backend/app/Http/Controllers/Api/Platform/CompanyController.php - Laravel REST API → Platform operations: serves platform API
- Laravel REST API → MySQL: persists records
- Workflow engine → Notifications: notifies users
backend/app/Services/WorkflowEngine.php - Workflow engine → Audit history: records actions
backend/app/Services/WorkflowEngine.php - Payment and billing → MySQL: stores billing
- Reports and exports → Voucher documents: exports reports
- Voucher records → Company branding: uses tenant identity