How 2026-kb-wms/sports-wms-server works
Sports WMS is a Spring backend for headquarters, warehouse, and store staff to manage products, purchasing, inbound receipts, inventory, store orders, and outbound fulfillment. The principal flow is a store order being fulfilled through outbound stock allocation and picking, with inventory updated and store-order lines reconciled. The tree and README establish the wider domain capabilities; sampled source confirms parts of authentication, inventory querying, and fulfillment. Many controller-to-service and unsampled domain links are therefore omitted or marked unverified.
Main entry points: OutboundFulfillmentService.java Outbound Fulfillment · AuthService.java Authentication · AuthController.java Auth API · PurchaseOrderService.java Suppliers and POs
Components 20
Identity and Access
- Auth API
src/main/java/com/kb/wms/auth/adapter/in/web/AuthController.java - Authentication
src/main/java/com/kb/wms/auth/application/service/AuthService.java - User Accounts
src/main/java/com/kb/wms/auth/adapter/out/persistence/UserPersistenceAdapter.java - JWT Security
src/main/java/com/kb/wms/common/security/JwtProvider.java
Catalog and Locations
- Products and SKUs
src/main/java/com/kb/wms/product/application/service/ProductService.java - Warehouses and Sections
src/main/java/com/kb/wms/warehouse/application/service/WarehouseService.java - Stores and Members
src/main/java/com/kb/wms/store/application/service/StoreService.java
Inbound and Inventory
- Suppliers and POs
src/main/java/com/kb/wms/inbound/application/service/PurchaseOrderService.java - Inbound Receiving
src/main/java/com/kb/wms/inbound/application/service/InboundCompleteService.java - Inventory Queries
src/main/java/com/kb/wms/inventory/application/service/InventoryQueryService.java - Inventory and Lots
src/main/java/com/kb/wms/inventory/adapter/out/persistence/InventoryLotPersistenceAdapter.java
Order Fulfillment
- Store Orders
src/main/java/com/kb/wms/storeorder/application/service/StoreOrderService.java - Order Reconciliation
src/main/java/com/kb/wms/storeorder/application/service/StoreOrderFulfillmentService.java - Stock Allocation
src/main/java/com/kb/wms/outbound/application/service/StockAllocationService.java - Outbound Fulfillment
src/main/java/com/kb/wms/outbound/application/service/OutboundFulfillmentService.java - Allocation Queries
src/main/java/com/kb/wms/outbound/adapter/out/persistence/repository/StockAllocationQueryJpaRepository.java
Shared Services
- Status History
src/main/java/com/kb/wms/statushistory/application/service/StatusHistoryService.java - User Context
src/main/java/com/kb/wms/common/security/AuthenticatedUser.java - API Error Mapping
src/main/java/com/kb/wms/common/exception/GlobalExceptionHandler.java
Other components
- Staff
Connections 20
- Staff → Auth API: logs in
README.md - Auth API → Authentication: delegates to
- Authentication → User Accounts: loads account
src/main/java/com/kb/wms/auth/application/service/AuthService.java - Authentication → JWT Security: creates token
src/main/java/com/kb/wms/auth/application/service/AuthService.java - Staff → Products and SKUs: manages catalog
- Staff → Warehouses and Sections: manages locations
- Staff → Stores and Members: manages stores
- Staff → Suppliers and POs: places purchase orders
- Suppliers and POs → Inbound Receiving: receives goods
- Staff → Inventory Queries: checks stock
- Inventory Queries → Inventory and Lots: queries
src/main/java/com/kb/wms/inventory/application/service/InventoryQueryService.java - Staff → Store Orders: requests stock
- Store Orders → Stock Allocation: allocates stock
- Stock Allocation → Allocation Queries: queries candidates
- Outbound Fulfillment → Order Reconciliation: applies picked quantities
src/main/java/com/kb/wms/outbound/application/service/OutboundFulfillmentService.java - Outbound Fulfillment → Status History: records changes
- Order Reconciliation → Status History: records changes
- Outbound Fulfillment → Inventory and Lots: ships stock
- Staff → User Context: authenticated as
- API Error Mapping → Staff: returns errors