Description
As a product manager, I want to see the total inventory value per product category, so that I can understand how stock value is distributed across categories.
The inventory value for a category is calculated as the sum of (product price × quantity on hand) for all products in that category.
Acceptance Criteria
- The system calculates inventory value grouped by product category.
- For each category, the following information is displayed:
- Category name
- Number of products in the category
- Total inventory value
- Categories are ordered by total inventory value, descending.
- The feature is accessible through a console command.
Description
As a product manager, I want to see the total inventory value per product category, so that I can understand how stock value is distributed across categories.
The inventory value for a category is calculated as the sum of (product price × quantity on hand) for all products in that category.
Acceptance Criteria