# Stock Reorder block

> Low Stock Reorder Queue with At-Risk Value KPI and Bulk Create PO DataGrid

At-risk value KPI and urgency bar over a searchable, filterable SKU DataGrid with multi-select bulk Create PO and a reorder detail sheet. ReUI DataGrid, Frame, Badge; shadcn Button, Select, InputGroup. For procurement and inventory dashboards.

- Type: Pro block
- Category: [Inventory](https://web.dev.reui.io/blocks/solutions/inventory.md)
- Page: https://web.dev.reui.io/blocks/solutions/inventory/solution-inventory-3
- MCP: `get_block("solution-inventory-3")`
- Built with: Badge, Button, Data Grid, Dropdown Menu, Frame, Input Group, Scroll Area, Select, Separator, Sheet, Tooltip
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

Items below reorder point ranked by deficit, with a suggested PO quantity, an urgency filter and a bulk bar totaling units to order

## Agent notes

- `REORDER_ROWS` and `reorderSummary` in data.tsx are sample data; each row stores `deficit` and `suggestedPo` as fixed numbers
- `handleCreatePo` and `handleBulkCreatePo` create no order: both toast that purchase orders were drafted, and the bulk one clears the selection
- `handleBulkExport` and the header Export button only show a toast; no CSV is produced

## When not to use

- One purchase order whose lines are received against its supplier: use [PO Receiving](https://web.dev.reui.io/blocks/solutions/inventory/solution-inventory-4.md) (`get_block("solution-inventory-4")`)
- Every SKU at every location with on hand, allocated and available units: use [Stock Ledger](https://web.dev.reui.io/blocks/solutions/inventory/solution-inventory-2.md) (`get_block("solution-inventory-2")`)

## Third-party libraries

- TanStack Table v9: [API reference](https://tanstack.com/table/v9/docs/framework/react/reference/index), [docs](https://tanstack.com/table/v9/docs/framework/react/quick-start)
- Sonner v2: [API reference](https://sonner.emilkowal.ski/toast), [docs](https://sonner.emilkowal.ski/getting-started)

## Install

```bash
npx shadcn@latest add @reui/solution-inventory-3
```

## About Inventory blocks

### When to use

- Stock overview and ledger pages: KPI tiles, a stock health bar and a filterable SKU table
- A low stock reorder queue, or a purchase order received line by line from its supplier
- Product and order overlays: stock rules, variants and photos, order review, tracking or a shipping label

### When not to use

- A team overview of KPI tiles and charts where nothing tracks stock or SKUs: use the [Dashboard blocks](https://web.dev.reui.io/blocks/application/dashboard.md)
- A side panel for a record other than a product, order or shipment: use the [Sheet blocks](https://web.dev.reui.io/blocks/application/sheet.md)
- An activity or event history on its own, with no stock or shipment around it: use the [Timeline blocks](https://web.dev.reui.io/blocks/application/timeline.md)

### Agent notes

- Every block sets a `min-h-svh` wrapper with its own padding in page.tsx or its root component; drop it when the block mounts inside your app layout
- No block fetches or saves anything: actions set local state, fire a sonner `toast`, link to a page anchor or have no handler, so wire each to your API

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