ISStockLevelFilter.LocationID

Description

This filter property is used to load stock levels with the specified ID of the place where the stock is stored.

Syntax

object.LocationID

Part Attribute Type Description
object Required
The object always implements the ISStockLevelFilter interface

Return Value

int

Example

Display the information about the stock items and linked stock levels.

Dim aFilter
Dim aStockLevels
Dim aStockLevel
Dim aMessage
Dim i

Set aFilter = InventoryUtils.CreateStockLevelFilter
aFilter.LocationID = 990
set aStockLevels = InventoryUtils.LoadStockLevels(aFilter)

aMessage = aMessage & vbNewLine & "Stock Levels Count = " & aStockLevels.Count
for i = 0 to aStockLevels.Count - 1
  set aStockLevel = aStockLevels.Item(i)
  aMessage = aMessage & vbNewLine &_
  " - Maximum: " & aStockLevel.Maximum & vbNewLine &_
  " - Minimum: " & aStockLevel.Minimum & vbNewLine &_
  " - Note: " & aStockLevel.Note & vbNewLine &_
  " - Reorder: " & aStockLevel.Reorder & vbNewLine 
next   

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface Location ID cannot be found, but Location can be found in Maintain > Inventory > Stock Levels > Location.

Version information

Added in v7.8.0