Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method GetHasValidCapacity ( 
 | 
  output Strings feedback_o, 
 | 
  output Strings sanitycheckfeedback_o 
 | 
) declarative remote as Boolean 
 | 
{ 
 | 
  Description: 'Returns true if the stocking point capacity is not defined for a stocking point which is planned as infinite.' 
 | 
  TextBody: 
 | 
  [* 
 | 
    // Adhi Aug-24-2015 (created) 
 | 
    /* 
 | 
      When a stocking point is planned as infinite, 
 | 
      it should not have stocking point capacity in the first place. 
 | 
    */ 
 | 
    isvalid := not this.StockingPoint_MP().IsPlannedInfinite(); 
 | 
     
 | 
    if( not isnull( feedback_o ) and not isvalid ) 
 | 
    { 
 | 
      instance := Translations::MP_StockingPointCapacity_Instance( this.StockingPoint_MP().Name(), this.Start() ); 
 | 
      message :=  Translations::MP_StockingPointCapacity_ViolateHasValidCapacity(); 
 | 
      feedback_o.Add( SanityCheckMessage::GetFormattedMessage( instance, message ) ); 
 | 
      sanitycheckfeedback_o.Add( SanityCheckCategoryLevel::GetSanityCheckCategoryDataWarning() ); 
 | 
    } 
 | 
     
 | 
    return isvalid; 
 | 
  *] 
 | 
} 
 |