# LotStockLevel

## Description

LotStockLevel tracks the on-hand quantity of a specific lot at a specific storage location. It provides the lot-level granularity needed for traceability and FEFO (First Expired, First Out) picking strategies. Lot stock levels are updated internally when stock movements referencing a lot are executed.

## Domain Model Definitions

### Model type

Standard

### Command Definitions

- Lot stock levels are updated internally by stock movement execution

### Query Definitions

- Lot stock levels are included in lot queries

### Models

- LotStockLevel

### Invariants

- Unique per lot-storageLocation pair
- Goods issue cannot exceed the lot's on-hand quantity at the specified location
- Internal transfer preserves the lot association

### Relationships

- **Belongs to Lot**: Each lot stock level belongs to a single lot
- **References StorageLocation**: Each lot stock level tracks quantity at a specific storage location
