# ListSalesPriceRulesByPriceList

## Overview

ListSalesPriceRulesByPriceList lists pricing rules maintained under a selected sales price list so pricing administrators can review scope, precedence, and lifecycle.

## Business Rules

- Referenced sales price list must exist.
- The query returns rules across draft, active, and inactive states unless a status filter narrows the result.

## Process Flow

```mermaid
flowchart TD
    A[Receive sales price list id] --> B[Query SalesPriceRule by price list]
    B --> C[Apply optional status filter]
    C --> D[Return matching rules]
```

## External Dependencies

- None

## Error Scenarios

- **PRICE_LIST_NOT_FOUND**: Referenced sales price list does not exist

## Test Cases

- lists rules under a sales price list
- filters rules by lifecycle status when provided
- throws when price list is not found
