# GetInboundShipment

## Overview

GetInboundShipment retrieves a single InboundShipment by ID, including all associated InboundShipmentLine rows.

## Business Rules

- Lookup key is InboundShipment id
- Returns the full InboundShipment record with nested InboundShipmentLine records
- Returns null with an empty line list when no InboundShipment matches the given ID

## Process Flow

```mermaid
flowchart TD
    A[Receive inbound shipment id] --> B[Select InboundShipment by id]
    B --> C{Inbound shipment found?}
    C -->|No| D[Return null and empty lines]
    C -->|Yes| E[Select InboundShipmentLine rows]
    E --> F[Return shipment and lines]
```

## External Dependencies

- None

## Error Scenarios

- Returns null if the inbound shipment is not found

## Test Cases

- returns inbound shipment with lines when found
- returns null when inbound shipment does not exist
- returns inbound shipment with empty lines when no lines exist
