InventItemPriceSim.initFromCostingVersion Method
Copies the restrictions from a costing version to the price.
Syntax
public void initFromCostingVersion(
CostingVersion _costingVersion,
[InventSiteId _siteId,
CostingVersionId _costingVersionId,
CostingVersionFromDate _fromDate])
Run On
Called
Parameters
- _costingVersion
Type: CostingVersion Table
The costing version from which to apply the restrictions.
- _siteId
Type: InventSiteId Extended Data Type
The ID of the new site, if it needs to be changed. If there is a site specified in the costing version, that will overrule this value; optional.
- _costingVersionId
Type: CostingVersionId Extended Data Type
The new costing version ID. It defaults to the ID of the costing version; optional.
- _fromDate
Type: CostingVersionFromDate Extended Data Type
The new activation date of the price. A default date may be specified in the costing version; optional.