Skip to content
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

3 of 5 items need a reorder

SKUItemLocationOn handReservedAvailableReorder atState
FOM-PNL-12Foam panels, pack of 12Store room220 box4 Out of stock
CBL-XLR-03XLR cable, 3 mShelf B41899 pcs12 Low
HPH-CLS-02Closed headphonesShelf A3716 pcs6 Low
MIC-USB-01USB microphoneShelf A142636 pcs10 In stock
ACC-POP-10Pop filterShelf A231031 pcs8 In stock
  • items is a list. Each item has a sku, a name, the stock onHand, and the reorderAt point. It can also have a location, the reserved stock, and a unit.
  • 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.
  • locale sets the format of the numbers. Change the words with labels or 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

NameTypeDefaultDescription
items*BlessStockItem[]—
localestring"en"
labelsPartial<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; }>—

Released under the MIT License. Character names and artwork belong to their owners.