Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method GetHasFulfilledTarget ( 
 | 
  output Strings feedback_o, 
 | 
  output Strings sanitycheckfeedback_o 
 | 
) declarative remote as Boolean 
 | 
{ 
 | 
  Description: 'Returns true if the target in supply specification is fulfilled.' 
 | 
  TextBody: 
 | 
  [* 
 | 
    // Adhi Aug-19-2015 (created) 
 | 
     
 | 
    isvalid := this.GetHasFulfilledTarget(); 
 | 
     
 | 
    if( not isnull( feedback_o ) and not isvalid ) 
 | 
    { 
 | 
      gp := this.MacroPlan().GlobalParameters_MP(); 
 | 
      instance := SupplySpecification::GetInstanceText( this.Product_MP().Name(), this.Unit(), this.Start(), this.End() ); 
 | 
      message := Translations::MP_SupplySpecification_ViolateHasFulfilledTarget( this, gp.NumberOfDecimals() ); 
 | 
      feedback_o.Add( SanityCheckMessage::GetFormattedMessage( instance, message ) ); 
 | 
      sanitycheckfeedback_o.Add( SanityCheckCategoryLevel::GetSanityCheckCategoryPlanningWarning() ); 
 | 
    } 
 | 
     
 | 
    return isvalid; 
 | 
  *] 
 | 
} 
 |