1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Function CalcDisplayMinDuration 
 |  { 
 |    TextBody: 
 |    [* 
 |      // Set transition derived min duration if there is operation linked 
 |      value := '' 
 |      if( not this.IsDuration() and this.DefaultMinQuantity() > 0 and this.OperationInTransitionType( relsize ) > 0 ) 
 |      { 
 |        quantity := this.DefaultMinQuantity(); 
 |        value := [String]TransitionType_MP::GetDurationBasedOnQuantity( this.MinOperationInTransitionType(), 
 |                                                                        quantity, 
 |                                                                        quantity, 
 |                                                                        true, 
 |                                                                        true ); 
 |      } 
 |      else if( this.IsDuration() and this.DefaultMinDuration() > Duration::Zero() ) 
 |      { 
 |        value := [String]this.DefaultMinDuration(); 
 |      } 
 |      this.DisplayMinDuration( value ); 
 |    *] 
 |    InterfaceProperties { Accessibility: 'Module' } 
 |  } 
 |  
  |