How phalla009/krpos works
POS_SYS is a Laravel retail point-of-sale application. The main documented workflow is staff setting up the catalog and stock, then processing a checkout and producing a receipt; customer, access-control, reporting, and backup capabilities support store operations. The excerpts show POS checkout reading products and customers and creating orders and payments, plus product management and exports. Routing and several controllers were not sampled, so connections to those workflows are omitted or marked unverified rather than inferred.
Main entry points: PosController.php POS checkout · Order.php Orders and payments · Product.php Product catalog · OrderController.php Order management
Components 25
Application entry
- Web application
public/index.php - Web routing
routes/web.php
Sales and checkout
- POS checkout
app/Http/Controllers/PosController.php - Order management
app/Http/Controllers/OrderController.php - Orders and payments
app/Models/Order.php - Payment records
app/Models/Payment.php - Customer management
app/Http/Controllers/CustomerController.php - Customer records
app/Models/Customer.php
Catalog and inventory
- Product management
app/Http/Controllers/ProductController.php - Product catalog
app/Models/Product.php - Category management
app/Http/Controllers/CategoryController.php - Categories
app/Models/Category.php - Inventory operations
app/Http/Controllers/InventoryController.php - Inventory items
app/Models/InventoryItem.php
Store operations
- Sales reporting
app/Http/Controllers/ReportController.php - Report exports
app/Exports/ReportExport.php - Backup management
app/Http/Controllers/BackupController.php - Telegram notifications
app/Services/TelegramNotifier.php
Access and data
- Staff and roles
app/Http/Controllers/UserManagerController.php - User accounts
app/Models/User.php - Role permissions
app/Models/Role.php - Configured database
config/database.php
Other components
- Store staff
- Bakong payment service
- Telegram service
Connections 28
- Store staff → Web application: uses
- Web application → Web routing: loads routes
- Web routing → POS checkout: dispatches to
- POS checkout → Orders and payments: creates and reads
app/Http/Controllers/PosController.php - POS checkout → Payment records: creates payments
app/Http/Controllers/PosController.php - POS checkout → Product catalog: checks and deducts stock
app/Http/Controllers/PosController.php - POS checkout → Customer records: loads customers
app/Http/Controllers/PosController.php - POS checkout → Bakong payment service: checks payment
app/Http/Controllers/PosController.php - Order management → Orders and payments: reads and updates
app/Http/Controllers/OrderController.php - Order management → Customer records: loads customers
app/Http/Controllers/OrderController.php - Order management → Product catalog: loads products
app/Http/Controllers/OrderController.php - Order management → Payment records: uses payments
app/Http/Controllers/OrderController.php - Product management → Product catalog: manages products
app/Http/Controllers/ProductController.php - Product management → Categories: loads categories
app/Http/Controllers/ProductController.php - Product management → Product catalog: imports and exports
app/Http/Controllers/ProductController.php - Category management → Categories: manages categories
app/Http/Controllers/CategoryController.php - Inventory operations → Inventory items: manages stock
- Sales reporting → Orders and payments: queries sales
app/Http/Controllers/ReportController.php - Sales reporting → Customer records: queries customers
app/Http/Controllers/ReportController.php - Sales reporting → Inventory items: queries inventory
app/Http/Controllers/ReportController.php - Sales reporting → Report exports: exports reports
app/Http/Controllers/ReportController.php - Backup management → Telegram notifications: uses notifier
app/Http/Controllers/BackupController.php - Telegram notifications → Telegram service: sends messages
app/Services/TelegramNotifier.php - Staff and roles → User accounts: manages accounts
- User accounts → Role permissions: checks permissions
app/Models/User.php - Orders and payments → Configured database: persists records
- Product catalog → Categories: belongs to
app/Models/Product.php - Customer records → Orders and payments: has many
app/Models/Customer.php