Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method GetOverrideAnchor ( 
 | 
  LibOpt_Scope scope, 
 | 
  RunContextMeta rcm, 
 | 
  LibOpt_Task task 
 | 
) as owning ProductInStockingPointInPeriodPlannings 
 | 
{ 
 | 
  TextBody: 
 | 
  [* 
 | 
    overrideanchor := null(  ProductInStockingPointInPeriodPlanning );  
 | 
    if ( rcm.OptionDebugUsePresetAnchor() )  
 | 
    { 
 | 
      overrideanchor := select(  scope.GetPeriodInOptimizerRun(), Elements.ProductInStockingPointInPeriod.astype(  ProductInStockingPointInPeriodPlanning ), p, true, p.DebugMetaOptimizer_SelectMe() );  
 | 
      if ( not isnull( overrideanchor ) )  
 | 
      { 
 | 
        anchordescr := 'Using override anchor = ' + [String] overrideanchor.Start() + overrideanchor.ProductInStockingPoint_MP().Name();  
 | 
        debuginfo(  anchordescr );  
 | 
      } 
 | 
    } 
 | 
    result := construct( ProductInStockingPointInPeriodPlannings );  
 | 
    result.Add(  overrideanchor );  
 | 
    return &result; 
 | 
  *] 
 | 
  InterfaceProperties { Accessibility: 'Module' } 
 | 
} 
 |