Quintiq file version 2.0 
 | 
#parent: #root 
 | 
FunctionOverride CalcIsVisible 
 | 
{ 
 | 
  TextBody: 
 | 
  [* 
 | 
    value :=  not isnull( this.UnitNode() ) 
 | 
              and this.UnitNode().IsVisible() 
 | 
              and not isnull( this.StockingPointNode() ) 
 | 
              and this.StockingPointNode().IsVisible() 
 | 
     
 | 
    if( this.SupplyChainView().HasPersistentArrows() ) 
 | 
    { 
 | 
      value := not isnull( this.StockingPointNode() ) and this.StockingPointNode().IsVisible(); 
 | 
    } 
 | 
     
 | 
     
 | 
    this.IsVisible( value ); 
 | 
  *] 
 | 
} 
 |