# GetItemValuation

## Overview

GetItemValuation retrieves the valuation policy assignment for an item in a company — the ItemValuation association record. Inventory value itself is carried by the general ledger and the methods' own cost state, not stored here.

## Business Rules

- Requires `itemId` and `companyId`
- Returns the ItemValuation association record (item, company, and valuation policy references)
- Returns error if no valuation record exists for the item in the company

## Process Flow

```mermaid
flowchart TD
    A[Receive itemId and companyId] --> B[SELECT from ItemValuation where itemId and companyId match]
    B --> C{Valuation found?}
    C -->|Yes| D[Return ItemValuation record]
    C -->|No| E[Return ITEM_VALUATION_NOT_FOUND error]
```

## External Dependencies

- None

## Error Scenarios

- **ITEM_VALUATION_NOT_FOUND**: No valuation record exists for the specified item

## Test Cases

- returns valuation when found
- returns error when not found
