ISInventoryAuditRecord.Cancelled

Description

This property is True if the inventory audit record is cancelled.

Syntax

object.Cancelled

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

Return Value

bool

Example

Display Cancelled for the inventory audit record.

Dim aFilter
Dim aInventoryAudits
Dim aInventoryAudit
Dim i
Dim aMessage

Set aFilter = InventoryUtils.CreateInventoryAuditFilter
aFilter.DateFrom = #10/28/2019# 
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 &_
    "Cancelled: " & aInventoryAudit.Cancelled & vbNewLine
next

Profile.MsgBox(aMessage)    
Note:

In Profile Client v8 on User Interface Cancelled cannot be found, but Inventory Audit Records can be found in Organisation > Work Centre > Manage > Inventory Audit.

Version information

Added in v7.10.3