1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  MethodOverride GetFactor () declarative as Real 
 |  { 
 |    TextBody: 
 |    [* 
 |      // The factor is the quantity in the process unit of measure divided by the output quantity 
 |      value := 1.0; 
 |       
 |      if(  not isnull( this.Operation() ) and this.Operation().OutputQuantity() <> 0.0 ) 
 |      { 
 |        value := this.QuantityInProcessUOM() / this.Operation().OutputQuantity();   
 |      }  
 |                         
 |      return value; 
 |    *] 
 |  } 
 |  
  |