Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method InitializeStockingPointsAfterImport 
 | 
{ 
 | 
  Description: 'Performs necessary initializations on stocking points after import' 
 | 
  TextBody: 
 | 
  [* 
 | 
    // Importing from EDI will not trigger OnCreate. 
 | 
    traverse( this, StockingPoint_MP, sp ) 
 | 
    { 
 | 
      sp.SynchronizeAfterCreation(); 
 | 
    } 
 | 
     
 | 
    if( this.GlobalParameters_MP().UseDefaultDisplayIndex() ) 
 | 
    { 
 | 
      this.SetDefaultDisplayIndexForStockingPoint(); 
 | 
    } 
 | 
     
 | 
    //This will sort SPs to display them in the correct order in D&S Gantt chart. 
 | 
    this.SortDisplayStockingPoint( attribute( StockingPoint_MP, DisplayIndexForExcel ), true ); 
 | 
  *] 
 | 
} 
 |