How ilhamspryd/point-of-sales works
This is a multi-tenant restaurant POS and self-ordering application. The principal transaction path accepts cashier, customer-checkout, or channel-order input, then routes orders through TransactionService for validation and transactional persistence, including stock and payment effects. Other major product areas include catalog and modifier management, kitchen display, shifts, reporting, restock forecasts, and tenant provisioning. The graph uses sampled source references for verified calls; several feature areas are represented from the file tree, so their internal links are omitted where implementation evidence was not supplied.
Main entry points: TransactionService.php Transaction service · ProcessWebhookOrderJob.php Channel ingestion · CreateOrder.php Cashier POS · CheckoutController.php Customer checkout
Components 22
Ordering and sales
- Cashier POS
app/Livewire/Kasir/CreateOrder.php - Customer checkout
app/Http/Controllers/Customer/CheckoutController.php - Channel ingestion
app/Jobs/ProcessWebhookOrderJob.php - Webhook endpoint
app/Http/Controllers/Api/WebhookController.php - Transaction service
app/Services/TransactionService.php - Order records
app/Models/Order.php
Catalog and inventory
- Product catalog
app/Models/Product.php - Modifiers
app/Models/Modifier.php - Ingredient inventory
app/Models/Ingredient.php - Inventory management
app/Livewire/Inventory/IngredientManager.php
Store operations
- Kitchen display
app/Services/KdsService.php - Shift management
app/Livewire/ShiftManager.php - Sales reporting
app/Services/ReportService.php - Restock forecasts
app/Services/Analytics/RestockPredictionService.php
Tenant platform
- Tenant context
app/Services/Context/TenantContext.php - Tenant middleware
app/Http/Middleware/SetTenantContext.php - Tenant records
app/Models/Tenant.php - User accounts
app/Models/User.php - Tenant provisioning
app/Services/ProvisioningService.php
Other components
- Customer
- Cashier
- Ordering channel
Connections 13
- Cashier → Cashier POS: enters order
- Customer → Customer checkout: checks out
app/Http/Controllers/Customer/CheckoutController.php - Ordering channel → Webhook endpoint: sends payload
- Webhook endpoint → Channel ingestion: dispatches job
app/Http/Controllers/Api/WebhookController.php - Channel ingestion → Transaction service: creates order
app/Jobs/ProcessWebhookOrderJob.php - Customer checkout → Transaction service: creates transaction
app/Http/Controllers/Customer/CheckoutController.php - Cashier POS → Transaction service: submits order
- Transaction service → Order records: persists order
app/Services/TransactionService.php - Transaction service → Ingredient inventory: deducts stock
app/Services/TransactionService.php - Channel ingestion → Product catalog: resolves mappings
app/Jobs/ProcessWebhookOrderJob.php - Tenant middleware → Tenant context: sets context
app/Http/Middleware/SetTenantContext.php - Tenant context → Tenant records: resolves tenant
app/Services/Context/TenantContext.php - Restock forecasts → Ingredient inventory: reads stock
app/Services/Analytics/RestockPredictionService.php