| Quintiq file version 2.0 | 
| #parent: #root | 
| FunctionOverride CalcQuantityToProcess | 
| { | 
|   TextBody: | 
|   [* | 
|     // Wayne Apr-22-2013 (created) | 
|      | 
|     value := this.InputQuantity(); // Input | 
|      | 
|     if( this.Unit().QuantityToProcess() = GlobalParameters_MP::GetQTProcessOut() ) // Output | 
|     { | 
|       value := this.OutputQuantity(); | 
|      | 
|       if( this.HasExcludedOutput() ) | 
|       { | 
|         value := this.OutputQuantityWithExclusion(); | 
|       } | 
|     } | 
|      | 
|     this.QuantityToProcess( value ); | 
|   *] | 
| } |