# item-management

## Overview

Manages the item master data — SKU-level entities that are referenced by purchase orders, inbound shipments, invoices, and inventory. Items are created and immediately activated for use in procurement workflows. Creation rejects duplicate SKUs so item identity stays stable across procurement and inventory records.

## Actors Involved

- [Admin](../../actor/admin.md) — initiator

## Flow Diagram

```mermaid
sequenceDiagram
    actor Admin
    participant System

    Admin->>System: Create item with SKU, name, and unit of measure
    alt SKU is unique
        System-->>Admin: Item created and activated
    else SKU already exists
        Note over System: rejects with ITEM_MANAGEMENT_DUPLICATE_SKU<br/>(checked by erp-kit createItem before INSERT)
        System-->>Admin: Error
    end
    Admin->>System: View item list
    System-->>Admin: Display items with status and SKU
    Admin->>System: View item detail
    System-->>Admin: Display item information
```

## Stories

- [admin--create-item](story/admin--create-item.md)
- [admin--view-item-list](story/admin--view-item-list.md)
- [admin--view-item-detail](story/admin--view-item-detail.md)

> **Pending Tier-3 story:** `admin--edit-item` — Items can be edited via `updateItem` (resolver + frontend page implemented in MVP); the dedicated story doc has not yet been authored.

> **Out of MVP scope:** deactivate / merge actions on Items are not implemented.
