Skip to main content
Version: 2.4

Stock Items

StockItem represents the material/equipment record stored in a stock. This page documents item-level records and item-type register governance.


1. Business Meaning

1.1 What a Stock Item Represents

StockItem is a stock-bound material record with quantity, optional serial/batch, optional catalog specification reference, and item status. It provides the basis for movement operations (StockMovement).

1.2 What a Stock Item Type Represents

StockItemType is a validity-governed type register for item classification and optional module/config metadata.

1.3 Transient Item Fields

StockItem contains transient helper fields:

  • transferStockSideRight,
  • movType.

They are intended for runtime processing/UI behavior and are not persisted as business attributes.


2. Entity Reference: StockItem (StockItem)

FieldTypeRequiredRead-onlyDescription
stockStringNoNoFK to Stock.key.
keyStringNo (create)NoBusiness-readable item key; generated if not provided.
idUUIDNoNoItem primary key.
amountFloatNoNoQuantity/amount in stock.
entCatSpecRefUUIDNoNoOptional catalog specification reference.
serialNumberStringNoNoOptional serial number.
priceFloatNoNoOptional item price value.
batchNoStringNoNoOptional batch number.
statusStockItemStatusNoNoItem status enum (ACTIVE, ARCHIVE).
stockItemTypeStringNoNoFK code to StockItemType.code.
transferStockSideRightBooleanNoNoTransient runtime helper flag (not stored).
movTypeStringNoNoTransient runtime helper value (not stored).
descriptionStringNoNoOptional description.
dataTagsList<String>NoNoOptional labels/tags.
charsTsmCharsNoNoDynamic item attributes.

3. Enum Reference: StockItemStatus (StockItemStatus)

ValueMeaning
ACTIVEActive stock item record.
ARCHIVEArchived stock item record.

4. Entity Reference: StockItemType (StockItemType)

FieldTypeRequiredRead-onlyDescription
idUUIDNoNoItem type primary key.
codeStringYesNoTechnical unique code.
nameStringYesNoDisplay name.
validityFromDateNoNoValidity start.
validityToDateNoNoValidity end.
descriptionStringNoNoOptional description.
localizationDataLocalizationDataNoNoLocalization payload.
iconStringNoNoOptional icon metadata.
configMap<String, Any?>NoNoAdditional configuration payload.
registryMap<String, Any?>NoNoRegister payload.
processingDataObjectNoWrite-onlyTransient processing context (max 32 top-level keys, max 64 KB, max depth 12).
dataTagsList<String>NoNoOptional labels/tags.
createPrivilegeStringNoNoOptional privilege constraint.
tsmModuleStringNoNoOptional module code reference.
entitySpecIdUUIDNoNoOptional entity specification reference.
mnemonicCodeStringNoNoOptional mnemonic code.