This function returns stock locations currently linked to the specified place of service.
object.GetPOSStockLocations()
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProvider interface |
Display the stock locations currently linked to the specified place of service.
Dim aFilter
Dim aProviders
Dim aProvider
Dim aStockLocation
Dim aStockLocationInfo
Dim aStockLocShortCode
Dim aMessage
Set aFilter = Profile.CreateProvidersFilter
aFilter.Category = 3 'pcPOS
set aProviders = Profile.LoadProvidersByFilter(aFilter)
aMessage = aMessage & vbNewLine &_
"The number of the providers is " & aProviders.Count
for each aProvider in aProviders
set aStockLocation = aProvider.GetPOSStockLocations
aMessage = aMessage & vbNewLine & aProvider.FullName & " has " &_
aStockLocation.Count & " stock locations"
aStockLocationInfo = ""
for each aStockLocShortCode in aStockLocation
aStockLocationInfo = aStockLocationInfo & aStockLocShortCode.Description & ", "
next
if aStockLocationInfo <> "" then
aMessage = aMessage & vbNewLine & " " & aStockLocationInfo
end if
next
Profile.MsgBox (aMessage)
In Profile Client v8 on User Interface POS Stock Locations can be found in
.