Inventory Traits
Introduction
Traits provide information on how storage locations and stocks are to be handled in operational and order processes. Traits can be set both on storage locations and stocks. If set on storage locations, they affect the handling of both storage locations and the stock located on them. Each stock placed on a location (by assigning it a locationRef
) will inherit the traits of its storage location if nothing is specified in the stock's traitConfig.
Traits can, for example, be used to mark a location and its stock as pickable or to lock locations along with their stock. When only using stocks (and no locations) traits can be used to mark stock as pickable or lock it.
Available traits
By default, each storage location has the traits PICKABLE
and ACCESSIBLE
, unless otherwise specified.
Trait | Default | Description |
---|---|---|
| Stock on these locations can be picked for fulfilling orders.
Only stock marked as | |
| The | |
| Normally stocks are deleted when they reach | |
| The |
Interacting with traits
Each trait has a default value. When nothing else is specified, the enabled traits are processed on both the storage location itself and the stocks on it. The default value (whether it is enabled or not) can be overwritten individually for each trait by setting it in the traitsConfig
field on the storage location or on the stock. Traits set on stocks overwrite the traits set on storage locations. All unspecified traits keep their defaults. This means that if a trait is enabled via the trait config, PICKABLE
and ACCESSIBLE
are set by default unless explicitly set to false.
The traitConfig should be used to write to traits. Do NOT use the trait array for that purpose.
The traitConfig
can specify each trait as enabled, disabled or unset. The final trait config is determined in a cascading manner:
Trait | Default | StorageLocation | Stock | Final Config |
---|---|---|---|---|
ACCESSIBLE | true | false | true | true |
PICKABLE | true | true | false | false |
KEEP_ON_ZERO | true | true |
Locking storage locations or stocks
To unlock the storage location, the ACCESSIBLE
trait must be set (again).
Traits in Order Routing and Fulfillment
Storage locations and stock with the traits PICKABLE
and ACCESSIBLE
OR with no traits are considered for fences and ratings during order routing and calculating stock availability.
The following storage locations and stocks are ignored in order routing and fulfillment:
with an empty array of traits
with only the trait
PICKABLE
with only the trait
ACCESSIBLE
Last updated