| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod ClosePermanently ( | 
|   Number currentopen, | 
|   Number currenttempclosed, | 
|   Number nrofopenunittobeclosed, | 
|   Number nroftempunittobeclosed, | 
|   output Number openresult_o, | 
|   output Number tempclosedresult_o | 
| ) | 
| { | 
|   Description: 'A static to calculate the units to be open and closed for ClosePermanently method' | 
|   TextBody: | 
|   [* | 
|     // soh yee Nov-19-2014 (created) | 
|      | 
|     openresult_o := maxvalue( currentopen - nrofopenunittobeclosed, 0 ); | 
|     tempclosedresult_o := maxvalue( currenttempclosed - nroftempunittobeclosed, 0 ); | 
|   *] | 
| } |