ISStockLotFilter.Batch

Description

This filter property is used to load stock lots with the selected batch number.

Syntax

object.Batch

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

Return Value

string

Example

Display the number of the stock lots loaded on the basis of the selected filter and some information about them.

Dim aFilter
Dim aStockLots
Dim aStockLot
Dim aMessage
Dim i

Set aFilter = InventoryUtils.CreateStockLotFilter
aFilter.Batch = 12
set aStockLots = InventoryUtils.LoadStockLots(aFilter)

aMessage = "Stock Lots Count = " & aStockLots.Count
for i = 0 to aStockLots.Count - 1
  set aStockLot = aStockLots.Item(i)
  aMessage = aMessage & vbNewLine &_
  "Expiry: " & aStockLot.Expiry & vbNewLine &_
  "Note: " & aStockLot.Note & vbNewLine &_
  "Order Number: " & aStockLot.OrderNum & vbNewLine &_
  "Quantity: " & aStockLot.Quantity
next   

Profile.MsgBox(aMessage)                  
Note:

In Profile Client v8 on User Interface Batch can be found in Maintain > Inventory > Stock Lots > Batch.

Version information

Added in v7.8.0
return type changed from int to string in v7.8.0