1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod MenuNew ( 
 |    LibUTF_IterationRun run, 
 |    MacroPlan macroplan, 
 |    NamedValueTree nvt_forecast 
 |  ) as Forecast 
 |  { 
 |    TextBody: 
 |    [* 
 |      dto := DTO_Forecast::ConstructNew( run, nvt_forecast ); 
 |      product := macroplan.FindProduct( dto.ProductID() ); 
 |      stockingpoint := macroplan.FindStockingPoint( dto.StockingPointID() ); 
 |       
 |      forecast := Forecast::Create( product, stockingpoint, dto.ID(), dto.StartDate(), dto.EndDate(), dto.Quantity(), dto.Price(), 
 |                                    dto.PriorityName(), dto.SalesSegmentName(), dto.CurrencyID(),  
 |                                    dto.UnitOfMeasureName(),  
 |                                    dto.DemandUncertaintyPercentage(),  
 |                                    dto.IsExcludedFromFulfillmentKPIUser(), false )    
 |      return forecast; 
 |    *] 
 |    InterfaceProperties { Accessibility: 'Module' } 
 |  } 
 |  
  |