How cent-hub/inventory_team works
This is a PHP, warehouse-scoped inventory management application. Operators authenticate and use the web interface to manage item SKUs, receive and dispatch stock, transfer stock between warehouses, reconcile adjustments and damaged goods, then review balances, alerts, and transaction reports. StockService is the central transactional layer for inventory movements; the sampled pages show both direct database queries and service-backed actions. The README is empty, so capability coverage comes from the tree and sampled views; unsampled API wiring is not inferred.
Main entry points: index.php Application entry · database.php Application database · StockService.php Stock service · stock_in/index.php Stock receiving
Components 21
Access and shell
- Application entry
index.php - Authentication
controllers/AuthController.php - Users and accounts
views/users/index.php
Catalog and stock
- Item catalog
views/items/index.php - Inventory views
views/inventory/index.php - Finished goods
views/inventory/finished_goods.php - Stock card
views/inventory/stock_card.php
Stock movements
- Stock service
helpers/StockService.php - Inbound and outbound hub
views/inbound_outbound/index.php - Stock receiving
views/stock_in/index.php - Stock dispatch
views/stock_out/index.php - Warehouse transfers
views/stock_transfer/index.php - Stock adjustments
views/stock_adjustment/index.php - Operations hub
views/stock_operations/index.php - Damaged goods
api/bad_products/create.php
Inventory oversight
- Dashboard
views/dashboard/index.php - Reports
views/reports/index.php - Transaction reports
views/reports/stock_transactions.php - Preferences and accountability
views/settings/accountability.php
Other components
- Warehouse operator
- Application database
config/database.php
Connections 30
- Warehouse operator → Application entry: uses
- Application entry → Authentication: authenticates
- Application entry → Users and accounts: routes
- Application entry → Item catalog: routes
- Application entry → Inbound and outbound hub: routes
- Application entry → Stock receiving: routes
- Application entry → Stock dispatch: routes
- Application entry → Warehouse transfers: routes
- Application entry → Stock adjustments: routes
- Application entry → Operations hub: routes
- Application entry → Inventory views: routes
- Application entry → Finished goods: routes
- Application entry → Stock card: routes
- Application entry → Dashboard: routes
- Application entry → Reports: routes
- Application entry → Transaction reports: routes
- Application entry → Preferences and accountability: routes
- Users and accounts → Authentication: requires
- Stock receiving → Stock service: records stock
- Stock adjustments → Stock service: applies actions
- Inbound and outbound hub → Application database: queries
- Stock receiving → Application database: reads ledger
- Stock dispatch → Application database: reads ledger
- Warehouse transfers → Application database: reads and writes
- Operations hub → Application database: queries
- Item catalog → Application database: creates items
- Dashboard → Application database: queries balances
- Reports → Application database: queries inventory
- Stock service → Application database: transactions
- Damaged goods → Stock service: handles cancellation