CostSheetCalculationFactor::findCurrentFlex Method
Returnes the most appropriate current active calculation factor for a set of parameters.
Syntax
client server public static CostSheetCalculationFactor findCurrentFlex(
CostSheetNodeId _calculationNodeId,
ItemId _itemId,
ItemGroupId _itemGroupId,
InventSiteId _inventSiteId,
CostSheetCalculationFactor _tmpCostSheetCalculationFactor,
[boolean _forUpdate,
CostSheetId _costSheetId])
Run On
Called
Parameters
- _calculationNodeId
Type: CostSheetNodeId Extended Data Type
The ID of the calculation node.
- _itemId
Type: ItemId Extended Data Type
The item ID.
- _itemGroupId
Type: ItemGroupId Extended Data Type
The item group ID.
- _inventSiteId
Type: InventSiteId Extended Data Type
The site name.
- _tmpCostSheetCalculationFactor
Type: CostSheetCalculationFactor Table
A record that will be used in the select statement if it is temporary.
- _forUpdate
Type: boolean
A Boolean value that determines whether the found record should be selected for update; optional.
- _costSheetId
Type: CostSheetId Extended Data Type
Reserved for future releases, where multiple costing sheets will be used; optional.
Return Value
Type: CostSheetCalculationFactor Table
A record with the current active calculation factor.
Remarks
If there is no appropriate record for _inventSiteId, the same select statement, but with empty site name, will be used.