# supplier-detail

## Overview

The primary entry is the **Supplier settings** tab of `/master-data/business-partner/:id`. It lists accounts by company and opens account settings inline. Transaction links open this BP tab with the relevant account selected.

Manages a SupplierAccount's required name, optional preferred currency, optional default expense account, lifecycle, purpose-specific address and bank usages, and invoice tolerance. Links to the shared BP's identity, addresses and bank accounts. The **Customer settings** tab provides equivalent CustomerAccount settings without supplier invoice tolerance or the non-PO invoice expense default.

## Screen Type

DetailView

### DetailView Details

#### Displayed Fields

- Account code, required account name, company, currency, default expense account and status
- Shared BP name (separate from account name)
- Address usages: ORDER_FROM / REMIT_TO / SHIP_FROM / RETURN_TO
- Bank usages: PAYMENT / REFUND
- One optional default per purpose

#### Available Actions

| Action | Condition | Requires Input | Confirmation |
| --- | --- | --- | --- |
| Edit account name, currency and default expense account | — | Yes; name is required; blank optional fields clear them; the expense account is limited to active EXPENSE accounts in the account's company | No |
| Deactivate / reactivate account | Independent of BP status | No | Deactivation only |
| Assign an address or bank account | Active detail belonging to this BP | Target and purpose | No |
| Set / unset default | One default per purpose | No | No |
| Remove assignment | Shared detail is retained | No | No |
| Open shared BP management | — | No | No |
| Set invoice tolerance | SupplierAccount has an owning company | Yes | No |

Default switching is handled atomically by the account command. Selecting a supplier on a non-PO invoice prefills its distribution account from this default; the user may override it on the invoice.

## Access Control

- [admin](../actor/admin.md)
