Catalog
Create Units for Item Quantity and Selling Labels
Units make quantities readable on item, sale and stock screens. Create short unit labels once, then assign them consistently to item records.
- Menu path
- Inventory -> Units
- Verified from
- Posnic demo and current POS source reviewed on 2026-09-08
Technical source evidence
frontend/modules/units.html first-class Inventory page with export filter new, frontend/static/script/js/modules/js/units.js client-side search pager inline editor usage lookup delete, api/src/controllers/settings.controller.js getUnitAll addUnit editUnit deleteUnit validation, api/src/models/setting.model.js unit duplicate-by-value and branch/license filtering, frontend/modules/items_write.html Item Units select and service unit, frontend/static/script/js/modules/js/items.js loadSelectUnits and per-variant units, demo.posnic.io Units reviewed on 2026-09-04
What Units Are For
A unit tells staff and reports what a quantity means. A stock count of 10 is clearer when the item says 10 pieces, 10 bottles or 10 packs.
- Use units for product quantity labels, not for categories or variants.
- Use familiar staff language such as Piece, Bottle, Pack, Box, Cup, Plate, Portion or Serving.
- Use a short Value because it appears in compact places such as bills and stock rows.
- Assign the unit while creating the item so stock and selling screens read correctly.
- Keep service units separate: service items use Fixed price, Per hour or Per day from the item form, not the Inventory Units list.
Screen Map
Inventory -> Units uses a split page. The list stays on the left and the right pane changes between details and editor.
| Area | What it does | Operator note |
|---|---|---|
| Export CSV | Exports this page or everything matching the filter. | Use before cleanup or owner review. |
| Filter | Searches unit names on the client-side list. | Clear it before broad review. |
| New | Opens the inline New unit editor in the right pane. | No pop-up appears for units. |
| List | Shows Name and Value. | Rows are sorted by name from the API. |
| Detail pane | Shows Value and Used by items. | Check this before edit or delete. |
| Edit/Delete | Available from the detail pane when permissions allow. | Delete removes the picker entry; it should not be routine cleanup. |
Create a Unit
- Open Inventory -> Units.
- Click New.
- Enter Name, such as Piece, Bottle, Pack or Carton.
- Enter Value, such as piece, bottle, pack or 12.
- Keep Value short. The controller accepts compact values and rejects overly long ones.
- Click Save.
- Open Inventory -> Items and assign the unit to one item.
- Check New Sale and reports to confirm the label is understandable.
Name and Value
The unit has two operator-facing parts. Name is what staff recognize. Value is the compact stored/display value used by item rows and pickers.
| Example | Name | Value |
|---|---|---|
| Single retail product | Piece | piece |
| Bottled product | Bottle | bottle |
| Case or carton | Carton | 12 |
| Menu item | Plate | plate |
| Service label | Service | service |
Assign Units to Items
- Create or verify the unit first.
- Open Inventory -> Items -> New or edit an item.
- Find Item Units near the reorder point and category/supplier area.
- Choose the right unit from the dropdown.
- For a variant item, review the unit on every generated variant row.
- Save the item.
- Open Item Details, New Sale and Inventory Logs to confirm the unit label reads correctly.
Used by Items
The Units detail pane loads item usage before the operator edits or deletes. It checks both newer item records with unit_id and older records that only stored the unit name.
- Click a unit row before cleanup.
- Read the Used by items list and note product name, SKU, price and stock.
- If many items use the unit, update those products first before renaming or deleting the unit.
- If no items use it, deletion is lower risk but still worth exporting first.
Edit or Delete a Unit
Before editing or deleting a unit, check where it is used. The page is designed this way because a unit affects how stock and sales quantities are read.
- Fix spelling early, before many items use the unit.
- The add flow refuses duplicate unit values, so do not create Piece and Pieces with the same value by accident.
- Keep Value changes small because the value is what item pickers store and display.
- Do not delete a unit that still appears on active products.
- Move affected items to the replacement unit before cleanup.
- Deleting removes the unit from the picker, but older item records may still display the stored name or id until they are edited.
- Export the unit list when preparing a larger catalog cleanup.
Unit Examples
| Business | Useful units | Avoid |
|---|---|---|
| Restaurant | Plate, Bowl, Cup, Serving, Portion | Using one generic unit for all menu items. |
| Retail | Piece, Pack, Box, Bottle | Putting pack size only in the item name. |
| Grocery | Kg, Gram, Litre, Packet | Mixing weight and count without clear labels. |
| Service | Service, Job, Hour | Using stock units for non-stock services. |