Commit Graph

2 Commits

Author SHA1 Message Date
Adrian Flores Cortes
b6dd94abcb feat(inventory): complete Inventory module with products, warehouses, stock
Products:
- ProductsListPage with filters and stock status
- ProductDetailPage with stock by warehouse
- ProductCreatePage/ProductEditPage with forms

Warehouses:
- WarehousesListPage with stats
- WarehouseDetailPage with locations preview
- WarehouseCreatePage/WarehouseEditPage
- LocationsPage with hierarchical tree view

Stock Management:
- StockLevelsPage (via existing)
- StockMovementsPage (via existing)
- StockMovementDetailPage with timeline
- KardexPage for product movement history
- StockAdjustmentPage for inventory adjustments

Components (13):
- StockLevelIndicator, StockLevelBadge
- WarehouseSelector, LocationSelector
- ProductStockCard, ProductForm, ProductInventoryForm
- MovementTypeIcon, MovementStatusBadge, StockMovementRow
- InventoryStatsCard, WarehouseForm

Hooks (6):
- useProducts, useWarehouses, useLocations
- useStockLevels, useStockMovements, useInventory

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 20:20:42 -06:00
28c8bbb768 feat(inventory): Add complete inventory frontend pages and hooks (MGN-011)
New pages:
- StockLevelsPage: View and manage stock levels by warehouse/product
- MovementsPage: Stock movements history with filters and actions
- InventoryCountsPage: Physical inventory counts management
- ReorderAlertsPage: Low stock alerts and reorder suggestions
- ValuationReportsPage: Inventory valuation by FIFO/average cost

New hooks:
- useStockLevels: Fetch and manage stock levels
- useMovements: Fetch stock movements with CRUD operations
- useWarehouses: Manage warehouses
- useLocations: Manage warehouse locations
- useStockOperations: Stock adjust, transfer, reserve operations
- useInventoryCounts: Inventory count lifecycle management
- useInventoryAdjustments: Inventory adjustments management

Extended API client with:
- Inventory counts endpoints
- Inventory adjustments endpoints
- Stock valuation endpoints

Extended types with:
- InventoryCount, InventoryCountLine, CreateInventoryCountDto
- InventoryAdjustment, InventoryAdjustmentLine, CreateInventoryAdjustmentDto
- StockValuationLayer, ValuationSummary

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 09:54:51 -06:00