| Quintiq file version 2.0 | 
| #parent: #root | 
| Function CalcCumulativeEarlyOptimizerExpiredQuantity | 
| { | 
|   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.CumulativeEarlyOptimizerExpiredQuantity() ); | 
|      | 
|     } | 
|     else  | 
|     {  | 
|       value := sum( this, ChildOfProductDimension, copd, | 
|                     not copd.ProductInStockingPoint_MP().IsExcluded(), | 
|                     copd.CumulativeEarlyOptimizerExpiredQuantity() * copd.ProductInStockingPoint_MP().ParentPISPConversionFactor() ); | 
|     } | 
|     this.CumulativeEarlyOptimizerExpiredQuantity( value ); | 
|   *] | 
|   InterfaceProperties { Accessibility: 'Module' } | 
| } |