Quintiq file version 2.0
|
#parent: #root
|
Function CalcEarlyOptimizerExpiredQuantity
|
{
|
TextBody:
|
[*
|
value := 0.0;
|
|
if( this.ChildOfProductDimension( relsize ) = 0 )
|
{
|
// Case 3 - Aggregated PISPIP: aggregate value from base level
|
value := sum( this.GetChildrenOfPeriodDimension(), Elements, child,
|
child.EarlyOptimizerExpiredQuantity() );
|
|
}
|
else
|
{
|
value := sum( this, ChildOfProductDimension, copd,
|
not copd.ProductInStockingPoint_MP().IsExcluded(),
|
copd.EarlyOptimizerExpiredQuantity() * copd.ProductInStockingPoint_MP().ParentPISPConversionFactor() );
|
}
|
this.EarlyOptimizerExpiredQuantity( value );
|
*]
|
InterfaceProperties { Accessibility: 'Module' }
|
}
|