| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 | | Quintiq file version 2.0 |  | #parent: #root |  | Function CalcNewSupplyQuantity |  | { |  |   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.NewSupplyQuantity() ); |  |      |  |     } |  |     else  |  |     {  |  |       value := sum( this, ChildOfProductDimension, copd, |  |                     not copd.ProductInStockingPoint_MP().IsExcluded(), |  |                     copd.NewSupplyQuantity() * copd.ProductInStockingPoint_MP().ParentPISPConversionFactor() ); |  |     } |  |      |  |     this.NewSupplyQuantity( value ); |  |   *] |  | } | 
 |