InventItemPurchSetup.inventLocationId Method
Returns a purchase warehouse ID.
Syntax
display InventLocationId inventLocationId(
[InventLocationId _inventLocationId,
InventTable _inventTable,
InventSiteId _inventSiteIdParent])
Run On
Called
Parameters
- _inventLocationId
Type: InventLocationId Extended Data Type
The default purchase warehouse ID; optional.
- _inventTable
Type: InventTable Table
An InventTable buffer that is used to verify whether the multisite has been enabled; optional.
- _inventSiteIdParent
Type: InventSiteId Extended Data Type
A purchase site ID that the _inventLocationId parameter should belong to; optional.
Return Value
Type: InventLocationId Extended Data Type
A purchase warehouse ID.
Remarks
The _inventSiteIdParent parameter applies only when the _inventLocationId parameter is specified. If both the _inventSiteIdParent and _inventLocationId parameters are passed and no site-specific settings are found, check to determine whether the passed _inventLocationId belongs to the site specified by _inventSiteIdParent will be performed. If it does not, an empty string will be returned. If it does, the passed _inventLocationId parameter is returned.