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
26
27
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod Update ( 
 |    DisaggregationFactors disaggregationfactors, 
 |    Product_MP product, 
 |    StockingPoint_MP stockingpoint, 
 |    Date start, 
 |    Real factor 
 |  ) 
 |  { 
 |    Description: 'Update multiple DisaggregationFactors.' 
 |    TextBody: 
 |    [* 
 |      traverse( disaggregationfactors, Elements, df ) 
 |      { 
 |         // Primary keys are disabled during batch editing 
 |        if( disaggregationfactors.Size() > 1 ) 
 |        { 
 |          product := df.Product_MP(); 
 |          stockingpoint := df.StockingPoint_MP(); 
 |          start := df.Start(); 
 |        } 
 |       
 |        df.Update( product, stockingpoint, start, factor, false ); 
 |      } 
 |    *] 
 |  } 
 |  
  |