# supplier-management

## Overview

Manages shared BP identity and company-specific SupplierAccounts. CustomerAccounts use the same BP's reusable addresses and bank accounts with their own purposes/defaults. BP and account status changes are independent. Payment terms and contacts are outside this flow.

## Actors Involved

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

## Flow Diagram

```mermaid
sequenceDiagram
    actor Admin
    participant System
    Admin->>System: Create BP identity (name, type)
    System-->>Admin: ACTIVE BP
    Admin->>System: Register shared addresses and bank accounts
    Admin->>System: Create supplier account (BP, company, code)
    System-->>Admin: ACTIVE SupplierAccount
    Admin->>System: Assign details and defaults by purpose
    System-->>Admin: Saved account settings
    Admin->>System: Update or deactivate/reactivate BP and account separately
```

## Stories

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