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
28
29
30
31
32
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method DataMockupGenerateStockingPoints ( 
 |    Number nrofstockingpoints, 
 |    String uomname, 
 |    String currencyname 
 |  ) 
 |  { 
 |    TextBody: 
 |    [* 
 |      // ODE2 Feb-24-2017 (created) 
 |       
 |      for( i := 0; i < nrofstockingpoints; i++ ) 
 |      { 
 |        id := 'StockingPoint_' + [String] i; 
 |         
 |        StockingPoint_MP::Create( this.MacroPlan(), 
 |                                  id, 
 |                                  '', 
 |                                  id, 
 |                                  uomname, 
 |                                  currencyname, 
 |                                  true, 
 |                                  Date::MinDate(), 
 |                                  Date::MaxDate(), 
 |                                  '', 
 |                                  '', 
 |                                  false ); 
 |                                   
 |      } 
 |    *] 
 |  } 
 |  
  |