| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod CanOpen ( | 
|   output String feedback_o, | 
|   Number input_opennew, | 
|   Number nroftemporarilyclosedunit, | 
|   Number input_opentemporarilyclosed | 
| ) declarative remote as Boolean | 
| { | 
|   Description: 'Used in the designer' | 
|   TextBody: | 
|   [* | 
|     feedback_o := ''; | 
|      | 
|     if( input_opennew = 0 and input_opentemporarilyclosed = 0 ) | 
|     { | 
|       feedback_o := Translations::MP_UnitPeriod_CanOpen_UnitEmpty(); | 
|     } | 
|     else if( input_opentemporarilyclosed > nroftemporarilyclosedunit ) | 
|     { | 
|       feedback_o := Translations::MP_UnitPeriod_CanOpen_UnitNotAvailable( nroftemporarilyclosedunit ); | 
|     } | 
|     else if( input_opennew < 0 or input_opentemporarilyclosed < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_UnitPeriod_CanOpen_IsNegativeValue(); | 
|     } | 
|     return feedback_o = ''; | 
|   *] | 
| } |