How helijonarceno/system-demo works
This PHP application supports staff login and role-based access to inventory, point-of-sale, accounts, dashboards, and reports. The principal evidenced workflow is a sales user finding available stock, building a basket, adjusting quantities, taking payment, and recording a transaction and its details. Inventory maintenance and account administration are distinct supporting workflows; dashboard and reporting queries provide operational and sales views. The tree establishes these product areas, but the README is empty and most controller-to-model wiring was not sampled, so uncertain links are omitted.
Main entry points: db.php Database connection · controllers/pos.php POS interactions · verify_account.php Verify account · views/pos.php POS screen
Components 25
Access and navigation
- Login screen
index.php - Verify account
models/authorization/verify_account.php - Role navigation
views/layout/sidebar.php
Point of sale
- POS screen
views/pos.php - POS interactions
controllers/pos.php - Product search
models/search/search_products2.php - Stock lookup
models/fetch/fetch_product_stock.php - Record transaction
models/insert/insert_transaction.php - Record sale lines
models/insert/insert_transaction_detail.php - GCash and top-up
views/modals/pos
Inventory operations
- Inventory screen
views/inventory.php - Inventory controller
controllers/inventory.php - Product maintenance
models/insert - Update product
models/update/update_product.php - Master data
models/insert
Accounts and reporting
- Account administration
views/accounts.php - Account controller
controllers/accounts.php - Account operations
models/fetch/fetch_accounts.php - Dashboard
views/dashboard.php - Dashboard controller
controllers/dashboard.php - Sales and stock metrics
models/dashboard - Reports and history
views/reports.php
Persistence layer
- Database connection
models/db.php
Other components
- Staff user
- Application database
Connections 28
- Staff user → Login screen: enters credentials
- Login screen → Verify account: submits login
- Verify account → Database connection: queries account
- Verify account → Role navigation: sets session
- Staff user → POS screen: uses POS
- POS screen → POS interactions: loads interactions
- POS interactions → Product search: searches stock
- POS interactions → Stock lookup: checks quantity
- POS interactions → Record transaction: records sale
- POS interactions → Record sale lines: records sale lines
- POS screen → GCash and top-up: opens payment forms
- Product search → Database connection: queries inventory view
- Stock lookup → Database connection: queries stock
- Record transaction → Database connection: writes transaction
- Record sale lines → Database connection: writes sale lines
- Staff user → Inventory screen: maintains inventory
- Inventory screen → Inventory controller: loads page logic
- Inventory screen → Update product: submits product edit
- Update product → Database connection: updates inventory
- Staff user → Account administration: administers accounts
- Account administration → Account controller: loads account logic
- Account administration → Account operations: fetches accounts
- Account operations → Database connection: queries accounts
- Staff user → Dashboard: views performance
- Dashboard → Dashboard controller: loads dashboard
- Dashboard controller → Sales and stock metrics: requests metrics
- Staff user → Reports and history: reviews reports
- Database connection → Application database: connects