ISStockItem.SupplierRef

Description

The supplier's reference number for the stock item.

Syntax

object.SupplierRef

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

Return Value

string

Example

Display the number of the stock items loaded on the basis of the selected filter, some information about them, including the supplier's reference number.

Dim aFilter
Dim aStockItems
Dim aStockItem
Dim aMessage
Dim i

Set aFilter = InventoryUtils.CreateStockItemFilter
aFilter.Code = "BB"
set aStockItems = InventoryUtils.LoadStockItems(aFilter)

aMessage = "Stock Items Count = " & aStockItems.Count
for i = 0 to aStockItems.Count - 1
  set aStockItem = aStockItems.Item(i)
  aMessage = aMessage & vbNewLine &_
  "Description: " & aStockItem.Description & vbNewLine &_ 
  "Note: " & aStockItem.Note & vbNewLine &_
  "Pack Count: " & aStockItem.PackCount & vbNewLine &_
  "SKU: " & aStockItem.SKU & vbNewLine &_
  "Supplier Ref: " & aStockItem.SupplierRef & vbNewLine
next      

Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface Supplier Ref can be found in Maintain > Inventory > Stock Items > Edit the selected stock item > Supplier Ref.

Version information

Added in v7.8.0