Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method GetIsPlannedGreaterThanMinDuration ( 
 | 
  Boolean checkLast 
 | 
) declarative remote as Boolean 
 | 
{ 
 | 
  Description: 'Returns true if planned quantity is greater than minimum duration.' 
 | 
  TextBody: 
 | 
  [* 
 | 
    isvalid := this.TransitionType_MP().InputType() = GlobalParameters_MP::GetCampaignTransitionsTypeQuantity() //if input type is quantity then no need to check on duration 
 | 
               or this.UtilizationDuration() >= this.TransitionType_MP().DefaultMinDuration() 
 | 
               or ( not checkLast and this.IsPlanned() and isnull( this.ToCampaign() ) ); 
 | 
     
 | 
    return isvalid 
 | 
  *] 
 | 
} 
 |