Calm motion: animations on this site only fade, with no movement
Stock levels
Stock for each item and place, with a reorder point and a low state
Shows what is in the warehouse in an ERP or a shop back office, and what to order again. The reorder point is the level at which you order more.
Basic
| SKU | Item | Location | On hand | Reserved | Available | Reorder at | State |
|---|---|---|---|---|---|---|---|
| FOM-PNL-12 | Foam panels, pack of 12 | Store room | 2 | 2 | 0 box | 4 | Out of stock |
| CBL-XLR-03 | XLR cable, 3 m | Shelf B4 | 18 | 9 | 9 pcs | 12 | Low |
| HPH-CLS-02 | Closed headphones | Shelf A3 | 7 | 1 | 6 pcs | 6 | Low |
| MIC-USB-01 | USB microphone | Shelf A1 | 42 | 6 | 36 pcs | 10 | In stock |
| ACC-POP-10 | Pop filter | Shelf A2 | 31 | 0 | 31 pcs | 8 | In stock |
itemsis a list. Each item has asku, aname, the stockonHand, and thereorderAtpoint. It can also have alocation, thereservedstock, and aunit.- The available stock is on hand less reserved. Reserved stock is promised to orders.
- The state is "Out of stock" at zero available, "Low" at or below the reorder point, and "In stock" above it. Each state has a mark, a word, and an edge.
- The worst items come first, so what needs action is on top. A status line counts the items to reorder.
- The check box shows only the items to reorder.
localesets the format of the numbers. Change the words withlabelsor a label pack. The API table lists the keys.
The stockState function gives the free stock and the state of one item. It is exported for your own views.
Usage
ts
import { BlessStockLevels } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
items* | BlessStockItem[] | — | |
locale | string | "en" | |
labels | Partial<Record<BlessStockState, string> & { title: string; sku: string; item: string; location: string; onHand: string; reserved: string; available: string; reorder: string; state: string; onlyLow: string; count: (low: number, total: number) => string; }> | — |