# Invoice Matching block

> 3-way invoice matching app shell with a PO tree, linked check markers and a docked AI advisor

Accounts payable review console: order search, a Review, Ready, Overdue filter, 3 checks per PO with issue count badges, and an AI advisor that answers from AP policies. ReUI Badge, Frame; shadcn Collapsible, Tabs, MessageScroller. Procure-to-pay.

- Type: Pro block
- Category: [App Shell](https://reui.io/blocks/application/app-shell.md)
- Page: https://reui.io/blocks/application/app-shell/app-shell-34
- MCP: `get_block("app-shell-34")`
- Built with: Avatar, Badge, Bubble, Button, Card, Collapsible, Dropdown Menu, Empty, Field, Frame, Icon Stack, Icon Tile, Input Group, Item, Kbd, Marker, Message Scroller, Separator, Sheet, Skeleton, Spinner, Tabs, Toggle Group, Tooltip
- Installs with a ReUI Pro or Ultimate license; setup: https://reui.io/docs/license-setup

## Best for

A purchase order queue with 3 linked check markers per order, Review, Ready and Overdue filters and an AI advisor citing AP policies

## Agent notes

- Replace `ORDERS`, `CHECKS` and `MORE_ITEMS` in data.tsx; the count line reads a fixed `QUEUE_TOTAL`, and no row pick changes the skeleton `WorkspaceContent`
- `composeReply` matches keywords to canned `REPLY_LIBRARY` answers and Escalate only appends `handoffOpenedText`; wire both to your model and case queue
- Upload New, New 3WIM and the `CheckMenu` items only fire a sonner `toast`; rail Help and Settings and the `UserMenu` rows besides Theme have no handler

## When not to use

- A general project list sidebar with progress rings and a spending limit card: use [Project Tracker Sidebar](https://reui.io/blocks/application/app-shell/app-shell-3.md) (`get_block("app-shell-3")`)
- A new invoice to draft, with editable line items and a live tax total: use [Invoice Creator](https://reui.io/blocks/application/form/form-3.md) (`get_block("form-3")`)

## Install

```bash
npx shadcn@latest add @reui/app-shell-34
```

## About App Shell blocks

### When to use

- The outer layout of a multi page product: the navigation around its content area
- Dashboards and admin consoles that switch between workspaces or projects

### When not to use

- One overview page of stats, charts and tables inside your own layout: use the [Dashboard blocks](https://reui.io/blocks/application/dashboard.md)
- A top bar on its own, above a page layout you already have: use the [Navbar blocks](https://reui.io/blocks/application/navbar.md)

### Agent notes

- Shells that switch themes call `useTheme` from next-themes, so the app must mount the next-themes ThemeProvider

Every ReUI item has a twin like this one; the index is https://reui.io/llms.txt. Agents with the ReUI MCP (https://reui.io/docs/mcp) get the same guidance from the getters named above.
