PdsComdPricingRunLine::findForPricing Method
Finds a PdsPricingRunLine for pricing an item.
Syntax
client server public static PdsComdPricingRunLine findForPricing(
PdsComdPricingRunId _run,
ItemId _item,
[InventSiteId _site,
InventLocationId _warehouse,
InventSiteId _newSite])
Run On
Called
Parameters
- _run
Type: PdsComdPricingRunId Extended Data Type
The pricing run ID for the lines to select.
- _item
Type: ItemId Extended Data Type
The item ID of the item to get cost line for.
- _site
Type: InventSiteId Extended Data Type
The site to get the cost line for; optional.
- _warehouse
Type: InventLocationId Extended Data Type
The warehouse to get the cost line for; optional.
- _newSite
Type: InventSiteId Extended Data Type
The site to be used for costing; optional.
Return Value
Type: PdsComdPricingRunLine Table
The PdsPricingRunLine specified by the parameters; otherwise, an empty record.
Remarks
This method finds the line that matches the parameter values, including warehouse. If none is found and the InventLocationId value (warehouse) is not blank, then it finds a line that matches the run and item ID with a blank warehouse.