The following functions were introduced in OfmlPData
to support the transition to the new part pricing system.
Find more documentation on the new pricing system in the compile-time section for cm.core.part.Part
and runtime section for cm.abstract.dataSymbol.DsPData
.
Added: public double basePrice() {} Added: public void specOption(DsSpecOption[] sOptions, Space space, SFeature f, Option o, DsPDataOption pDataOption, int level, bool choosableInCalculation) {} Added: extend public void setOptionPrice(SpecOption option) {} Added: public DsPart createPart(Snapper snapper, PartsEnv env, double basePrice, Double optionPriceSum) {}
An override of basePrice
has been added to OFMLPData
to support the migration path to the new pricing model (≥16.5).
Old:
New:
useNewPartPricing()
→ returns only B-level row value from the pricelist.price()
method).The specOption(..)
function has been overridden in OFMLPData
to support pricing on an OFMLPart
s SpecOption
s.
Old:
specOption()
never adjusted option pricing directlyNew:
setOptionPrice()
Added as a helper to the overridden specOption(..)
function for setting SpecOption
price.
The createPart
method was split into two overloads to support the new pricing framework.
The new overload takes basePrice
and optionPriceSum
, while the old single-parameter version (using list price) has been marked for deprecation.
Old:
createPart(Snapper snapper, PartsEnv env, double price)
useNewPartPricing
is falseNew:
createPart(Snapper snapper, PartsEnv env, double basePrice, Double optionPriceSum)
basePrice
and optional optionPriceSum
useNewPartPricing
is truebasePrice
and optionPriceSum
The createPart
method was split into two overloads to support the new pricing framework.
The new overload takes basePrice
and optionPriceSum
, while the old single-parameter version (using list price) has been marked for deprecation.
Old:
createPart(DsPDataProxyEnv dsEnv, PartsEnv env, double price)
useNewPartPricing
is falseNew:
createPart(DsPDataProxyEnv dsEnv, PartsEnv env, double basePrice, Double optionPriceSum)
useNewPartPricing
is truecreatePart
behavior in the new pricing system.