# ListManufacturingCostSummariesByStatus

## Overview

ListManufacturingCostSummariesByStatus lists manufacturing cost summaries by review or settlement lifecycle so supervisors and finance reviewers can work review queues.

## Business Rules

- Company scope and at least one summary status are required.
- Optional filters may restrict by site, produced item, or production-order reference.
- Results are ordered by production-order completion or review date.
- The query returns summary-level cost and variance totals suitable for queue views, including production-order reference, site, item, and current cost-summary status.

## Process Flow

```mermaid
flowchart TD
    A[Receive scope and status filters] --> B[Validate company and status filters]
    B --> C[Query matching cost summaries]
    C --> D[Apply optional site or order filters]
    D --> E[Return summary list]
```

## External Dependencies

- None

## Error Scenarios

- **STATUS_FILTER_REQUIRED**: At least one summary status was not provided.
- **COMPANY_SCOPE_REQUIRED**: Company scope was not provided.

## Test Cases

- lists pending-review cost summaries for a company
- lists reviewed cost summaries awaiting settlement
- filters summaries by site when provided
- filters summaries by production order when provided
- returns summary rows with production-order and status context
- returns error when no status filter is provided
- returns error when company scope is missing
