ISInventoryAuditFilter.Batch

Description

This filter property is used to load inventory audit records with the specified batch number.

Syntax

object.Batch

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

Return Value

string

Example

Display the number of the inventory audit records loaded on the basis of the selected filter and some information about them.

Dim aFilter
Dim aInventoryAudits
Dim aInventoryAudit
Dim i
Dim aMessage

Set aFilter = InventoryUtils.CreateInventoryAuditFilter
aFilter.Batch = "12"
set aInventoryAudits = InventoryUtils.LoadInventoryAudits(aFilter) 

aMessage = "Inventory Audit Records Count = " & aInventoryAudits.Count
for i = 0 to aInventoryAudits.Count - 1
  set aInventoryAudit = aInventoryAudits.Item(i)
  aMessage = aMessage & vbNewLine & (i + 1) & ") " &_
    "Date: " & aInventoryAudit.Date & vbNewLine &_
    "Note: " & aInventoryAudit.Note & vbNewLine &_
    "Order Number: " & vbNewLine & aInventoryAudit.OrderNum &_
    "Quantity: " & aInventoryAudit.Quantity & vbNewLine
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