Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method GetIsWithinLotSize ( 
 | 
  output Strings feedback_o, 
 | 
  output Strings sanitycheckfeedback_o 
 | 
) declarative remote as Boolean 
 | 
{ 
 | 
  Description: 'Check if trip has valid planned quantity within the lotsize (trip size). For sanity check.' 
 | 
  TextBody: 
 | 
  [* 
 | 
    isvalid := this.GetIsWithinLotSize(); 
 | 
     
 | 
    if( not isnull( feedback_o ) and not isvalid ) 
 | 
    { 
 | 
      gp := this.MacroPlan().GlobalParameters_MP(); 
 | 
      instance := Trip::GetInstanceText( this.LaneLeg(), this.Arrival().Date() ); 
 | 
      message := Translations::MP_Trip_ViolateIsWithinLotSize( this, gp.NumberOfDecimals() ); 
 | 
      feedback_o.Add( SanityCheckMessage::GetFormattedMessage( instance, message ) ); 
 | 
      sanitycheckfeedback_o.Add( SanityCheckCategoryLevel::GetSanityCheckCategoryPlanningIssue() ); 
 | 
    } 
 | 
     
 | 
    return isvalid; 
 | 
  *] 
 | 
} 
 |