# invoice-detail

## Overview

Displays full details of a single vendor invoice (Account Payable document) including header information, line items, due schedule, and any active payment holds. Available actions vary by document status.

## Screen Type

DetailView

### DetailView Details

#### Displayed Fields

- **Header**
  - Document Number (`id`)
  - Type (`documentType`)
  - Status (`status`) — Badge: DRAFT (neutral), REGISTERED (info), POSTED (success), CANCELLED (error)
  - Supplier (`businessPartner.name`) — link to supplier detail
  - Currency
  - Supplier Invoice # (`externalDocumentNumber`)
  - Total Amount
  - Document Date
  - Posting Date
- **Line Items** (table)
  - Description
  - Qty
  - Unit Price
  - Amount
- **Due Schedule** (table)
  - Due Date
  - Amount
- **Active Holds** (table, shown only when active holds are present)
  - Reason — hold reason code rendered as friendly text
  - Source — SYSTEM or MANUAL

For `PURCHASE_ORDER`-sourced lines the Qty and Unit Price columns are populated; manual (amount-only) lines show only the Amount.

#### Available Actions

| Action | Condition | Requires Input | Confirmation |
|---|---|---|---|
| Register | status is DRAFT | — | dialog |
| Release Hold | one action per active hold | — | dialog |
| Back to Invoices | — | — | — |

## Access Control

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