Quintiq file version 2.0 
 | 
#parent: #root 
 | 
FunctionOverride CalcIsValid 
 | 
{ 
 | 
  TextBody: 
 | 
  [* 
 | 
    value := true; 
 | 
    macroplan := this.SanityCheckGroup().MacroPlan(); 
 | 
     
 | 
    if( this.IsOperationError() ) 
 | 
    { 
 | 
      value := macroplan.GetHasValidNrOfOperation(); 
 | 
    } 
 | 
    else if( this.IsPISPIPError() ) 
 | 
    { 
 | 
      value := macroplan.GetHasValidNrOfPISPIP() 
 | 
    } 
 | 
    else if( this.IsLaneLegProductCombiError() ) 
 | 
    { 
 | 
      value := macroplan.GetHasValidLaneLegProductCombi(); 
 | 
    } 
 | 
     
 | 
    this.IsValid( value ); 
 | 
  *] 
 | 
} 
 |