Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Prices may be displayed with or without icon, with or without text and with and without stock level. The icon and text may also be changed depeding on stock level to indicate that a part is getting low on stock. Image RemovedImage RemovedWarehouse name may also be displayed.

Image AddedImage Added

Limits for when a part is getting low in stock can be set in four levels:

...

The actual limits in terms of number of available may be defined in a configuration, or included in an API response. Returning a level (1-4) in the API may handle the situation that different parts are high runners so that when there are 100 on stock that may actually mean very low on stock, while another part with 5 in stock is plenty.

Configuration

Code Block
StockDisplayModes? StockDisplayMode
Display mode of stock. Default is StockDisplayModes.All.
enum StockDisplayModes {
    None = 0x0,
    Text = 0x1,
    Quantity = 0x2,
    Icon = 0x4,
    AvailibilityText = 0x4,
    LeadTime = 0x8,
    All = 0x1F
}

 

...

Providers for Availability contains some settings for availability. See separate articles under Order Process, depending on what providers are used: Technical documentation - Order Process and APIs for Order Process

Version 4.3 to version 5.0

What is shown on availability is defined in profile.config by using the tag StockDisplayModes located in the root of profile.config.

Code Block
<!-- Will display an icon and a text (e.g Out of stock or Available) -->
<StockDisplayModes>Icon AvailabilityText<StockDisplayModes>

Mode

Description

None

Availability will not be displayed.

Text

Quantity

Stock level will be displayed. If level is 0 Out of stock will be displayed.

Icon

Icon for availability will be displayed, X for out of stock and check for available. Depending on stock level different colours and icons may be used by stying in CSS.

AvailabilityText

A text will be displayed, e.g Out of stock or Available.

LeadTime

Delivery date or days to deliver. This option requires custom providers.

Warehouse name is shown by default if it is available. To hide warehouse name, use css rules.

Version 5.1 and later

TBP

 

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@1ecd09
showSpacefalse
sortmodified
typepage
reversetrue
labelsavailability icon settings options
cqllabel in ( "settings" , "options" , "icon" , "availability" ) and type = "page" and space = "ASKB"

...