Scanning documentation library
Scanning documentation library
Scanning documentation library
The Warehouse Manager agent (ERPStockService) tracks product stock in the default warehouse (zero-warehouse), deducts inventory when orders are paid, and logs movements for audit.
getStockSummary() — dashboard totals (in stock, low, critical, out of stock, inventory value)getLowStockProducts() — alerts at configurable thresholds (default low: 10, critical: 5)updateStock() — add, subtract, or set quantities with reason codes (sale, restock, adjustment, …)getRecentStockMovements() — audit feed from stock_movements collection| Surface | Route | Actions |
|---|---|---|
| Admin stock tab | /admin/store/stock | Summary, low-stock list, initialize-all action |
| Vendor stock | /vendor/stock | Per-product levels, restock |
POST /api/erp/stock/initialize — bulk initialize stock (admin; dev mode open). See app/api/erp/stock/initialize/route.ts.
Batch and lot tracking fields are specified in AI-CONTEXT erp-inventory.json; UI for traceability reports is Phase 3.
The Warehouse Manager agent (ERPStockService) tracks product stock in the default warehouse (zero-warehouse), deducts inventory when orders are paid, and logs movements for audit.
getStockSummary() — dashboard totals (in stock, low, critical, out of stock, inventory value)getLowStockProducts() — alerts at configurable thresholds (default low: 10, critical: 5)updateStock() — add, subtract, or set quantities with reason codes (sale, restock, adjustment, …)getRecentStockMovements() — audit feed from stock_movements collection| Surface | Route | Actions |
|---|---|---|
| Admin stock tab | /admin/store/stock | Summary, low-stock list, initialize-all action |
| Vendor stock | /vendor/stock | Per-product levels, restock |
POST /api/erp/stock/initialize — bulk initialize stock (admin; dev mode open). See app/api/erp/stock/initialize/route.ts.
Batch and lot tracking fields are specified in AI-CONTEXT erp-inventory.json; UI for traceability reports is Phase 3.
The Warehouse Manager agent (ERPStockService) tracks product stock in the default warehouse (zero-warehouse), deducts inventory when orders are paid, and logs movements for audit.
getStockSummary() — dashboard totals (in stock, low, critical, out of stock, inventory value)getLowStockProducts() — alerts at configurable thresholds (default low: 10, critical: 5)updateStock() — add, subtract, or set quantities with reason codes (sale, restock, adjustment, …)getRecentStockMovements() — audit feed from stock_movements collection| Surface | Route | Actions |
|---|---|---|
| Admin stock tab | /admin/store/stock | Summary, low-stock list, initialize-all action |
| Vendor stock | /vendor/stock | Per-product levels, restock |
POST /api/erp/stock/initialize — bulk initialize stock (admin; dev mode open). See app/api/erp/stock/initialize/route.ts.
Batch and lot tracking fields are specified in AI-CONTEXT erp-inventory.json; UI for traceability reports is Phase 3.