1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod GetVarianceChildDemand ( 
 |    ProductInStockingPointInPeriod pispip 
 |  ) declarative remote as Real 
 |  { 
 |    Description: 'Get the aggregated variance of sales demand for all collapsed downstream sales demands' 
 |    TextBody: 
 |    [* 
 |      value :=  sum( pispip, 
 |                     ProductInStockingPoint_MP.MEIO_AsCollapsedPISP.ProductInStockingPointInPeriodPlanning,  
 |                     child,  
 |                     child.ProductInStockingPoint_MP().MEIO_Leadtime()=0 and child.Period_MP() = pispip.Period_MP(), 
 |                     sum( child, SalesDemandInPeriodBase, sd, sd.Variance() )  
 |                     ); 
 |       
 |      return value; 
 |    *] 
 |  } 
 |  
  |