ISStockItem.Rx

Description

The information about the stock item as the Rx medication.

Syntax

object.Rx

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

Return Value

ISRx

Example

Display the number of the stock items loaded on the basis of the selected filter, some information about them, including the information about the Rx medications.

Dim aFilter
Dim aStockItems
Dim aStockItem
Dim aMessage
Dim i

Set aFilter = InventoryUtils.CreateStockItemFilter
aFilter.SKU = "TEST1"
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 & "-----------------------------" & vbNewLine &_
  "Description: " & aStockItem.Description & vbNewLine &_
  "Code: " & aStockItem.Code & vbNewLine &_  
  "Note: " & aStockItem.Note & vbNewLine &_
  "Pack Count: " & aStockItem.PackCount & vbNewLine &_
  "SKU: " & aStockItem.SKU & vbNewLine &_
  "Supplier Ref: " & aStockItem.SupplierRef & vbNewLine
next   

  if not aStockItem.Rx is nothing then
    aMessage = aMessage & "Rx: " & aStockItem.Rx.Name & " (" &_
      aStockItem.Rx.Code & ")"
  end if        

Profile.MsgBox(aMessage)
Note:

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

Version information

Added in v7.8.0