You are here: Ektron Namespace > Providers API > Ektron.Cms.Commerce.Inventory Namespace > Ektron.Cms.Commerce.Inventory.Provider Namespace > InventoryProvider Class > InventoryProvider Methods > IncreaseStockLevel
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
InventoryProvider.IncreaseStockLevel Method

Increases the stock level for a catalog entry (product) based on its ID and the given quantity. For example, if you need to increase the stock level of a given item (for example, item ID=12) by ten in your inventory system, you might use the following line of code:

inventory.IncreaseStockLevel(12, 10);
C#
public virtual void IncreaseStockLevel(long entryId, int quantity);
Visual Basic
Public virtual Function IncreaseStockLevel(entryId As long, quantity As Integer) As void
Parameters 
Description 
entryId 
Enter the ID of the catalog entry (product). 
quantity 
Enter the quantity by which the stock level will increase. 

The default implementation uses GetInventory() and SaveInventory().

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!