ATG Commerce comes with two repositories that are relevant to the inventory system: the Product Catalog and the Inventory Repository. The Product Catalog stores prices, descriptions, images, and fulfiller information. For more information, see the Using and Extending the Standard Catalog chapter. The Inventory Repository stores the stockLevel, availability information, and other inventory data.

This section describes the inventory repository that is included with ATG Commerce out of the box. The inventory information is stored in a separate repository from the product catalog. Each inventory method takes an ID from the product catalog and uses that information to get the inventory ID. For more information on the product catalog, see the Using and Extending the Standard Catalog chapter.

The inventory definition is stored in atg/commerce/inventory/inventory.xml. Each item in the inventory has the following properties.

Property

Definition

creationDate

The date this inventory item was created.

startDate

The inventory item will not be available until this date.

endDate

The inventory item will not be available after this date.

displayName

The name that is displayed to the user to represent this inventory item.

description

A description of this inventory item.

catalogRefId

The SKU ID in the Product Catalog to which this inventory item refers.

availabilityStatus

The status of this inventory item. It is an enumerated type. The integer code for each possible value is shown. The following codes represent availability status:
INSTOCK (1000) - This item is in stock.
OUTOFSTOCK (1001) – This item is out of stock.
PREORDERABLE (1002)- This item may be preordered.
BACKORDERABLE (1003) - This item may be backordered.
DERIVED (1004) - This item’s availabilityStatus should be derived from the values of its stockLevel, backorderLevel, and preorderLevel. DERIVED is the default value for availabilityStatus.
DISCONTINUED (1005) – This item is discontinued.

availabilityDate

The date on which this item will be available if not currently available.

stockLevel

The amount of stock available for purchase. The value -1 indicates that an infinite amount is available.

backorderLevel

The amount of this item that can be backordered. The value –1 indicates that the inventory system accepts an infinite number of backorders for this item.

preorderLevel

The amount of this item that can be preordered. The value –1 indicates the inventory system accepts an infinite number of preorders for this item.

stockThreshold

If the stockLevel falls below this amount, a warning event is generated.

backorderThreshold

If the backorderLevel falls below this amount, a warning event is generated.

preorderThreshold

If the preorderLevel falls below this amount, a warning event is generated.

 
loading table of contents...