Skip to main content
Version: 2.4

Stock Movements

StockMovement records material flow between item positions and ownership contexts. This page covers movement records, movement type governance, and movement status lifecycle.


1. Business Meaning

1.1 What a Stock Movement Represents

StockMovement is an auditable operation over stock items:

  • source item (stockItemFrom),
  • target item (stockItemTo),
  • quantity (amount),
  • movement classification (movementType),
  • synchronization/business status (status).

1.2 Storno Semantics

Movement model supports reversal operations:

  • stornoMovement = true marks reversal,
  • stornoMovementId links movement to the original movement record.

1.3 Movement Type Governance

StockMovementType is a validity-governed type register that controls movement classification and optional processing metadata.


2. Entity Reference: StockMovement (StockMovement)

FieldTypeRequiredRead-onlyDescription
idUUIDNoNoMovement primary key.
keyStringNo (create)NoBusiness-readable movement key.
statusStockMovementStatusNoNoMovement status enum.
stockItemFromStringNoNoFK to source StockItem.key.
stockItemToStringNoNoFK to target StockItem.key.
ownerIdUUIDNoNoOwner reference (context-dependent).
ownerTypeStringNoNoOwner type/classification value.
amountFloatNoNoMoved amount.
entCatSpecRefUUIDNoNoOptional catalog specification reference.
stornoMovementIdUUIDNoNoFK to original movement ID for storno linkage.
stornoMovementBooleanNoNoReversal movement flag.
movementTypeStringNoNoFK code to StockMovementType.code.
dataTagsList<String>NoNoOptional labels/tags.
charsTsmCharsNoNoDynamic movement attributes.
descriptionStringNoNoOptional description.

3. Enum Reference: StockMovementStatus (StockMovementStatus)

ValueMeaning
NEWNewly created movement record.
SYNCHRO_OKSynchronization with external target succeeded.
SYNCHRO_DATA_ERRORSynchronization failed due to data/validation error.
SYNCHRO_CANCELEDSynchronization was canceled.
CANCELEDMovement is canceled in business lifecycle.

4. Entity Reference: StockMovementType (StockMovementType)

FieldTypeRequiredRead-onlyDescription
idUUIDNoNoMovement type primary key.
codeStringYesNoTechnical unique code.
nameStringYesNoDisplay name.
validityFromDateNoNoValidity start.
validityToDateNoNoValidity end.
descriptionStringNoNoOptional description.
localizationDataLocalizationDataNoNoLocalization payload.
tsmModuleStringNoNoOptional module code reference.
entitySpecIdUUIDNoNoOptional entity specification reference.
mnemonicCodeStringNoNoOptional mnemonic code.
createPrivilegeStringNoNoOptional privilege constraint.
iconStringNoYesOptional icon metadata (read-only).
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.