PdsComdPricingRun::findEffective Method
Finds the PdsComdPricingRun record that is effective for a given date and cost basis.
Syntax
server public static PdsComdPricingRun findEffective(
PdsRunEffective _effective,
[PdsCostBasisType _costBasis,
InventSiteId _siteId])
Run On
Server
Parameters
- _effective
Type: PdsRunEffective Extended Data Type
A date on which the PdsComdPricingRun record should be effective.
- _costBasis
Type: PdsCostBasisType Extended Data Type
The cost basis type for the PdsComdPricingRun record; optional
- _siteId
Type: InventSiteId Extended Data Type
An inventory site ID for the PdsComdPricingRun record; optional.
Return Value
Type: PdsComdPricingRun Table
An effective PdsComdPricingRun record for the specified date and cost basis type; otherwise, an empty record.
Remarks
This method will find the PdsComdPricingRun record that is effective on the specified date.A pricing run is effective on a specific date when the given effective date is in the inclusive range of the effective through expiry dates of the run.If the cost basis type is specified, only a specific record is guaranteed because a run for a specific cost basis may not have overlapping effective and expiry dates. If the cost basis is empty, this method returns the first effective run that is found for any cost basis.