| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod ValidateInput ( | 
|   output String feedback_o, | 
|   output String sanitycheckfeedback_o, | 
|   UnitPeriod unitperiod, | 
|   Real actualutilizationpercentage, | 
|   Real actualtotalavailablequantity | 
| ) declarative remote as Boolean | 
| { | 
|   Description: 'Validate user input' | 
|   TextBody: | 
|   [* | 
|     // desmondt Aug-5-2015 (created) | 
|      | 
|     feedback_o := '' | 
|     sanitycheckfeedback_o := ''; | 
|       | 
|     if( actualutilizationpercentage < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_ActualUnitPeriod_ValidateInput_IsNegativeUtilizationPercentage( actualutilizationpercentage ); | 
|       sanitycheckfeedback_o := SanityCheckCategoryLevel::GetSanityCheckCategoryDataWarning(); | 
|     } | 
|     else if( actualtotalavailablequantity < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_ActualUnitPeriod_ValidateInput_IsNegativeTotalAvailableCapacity( actualtotalavailablequantity ); | 
|       sanitycheckfeedback_o := SanityCheckCategoryLevel::GetSanityCheckCategoryDataWarning(); | 
|     } | 
|      | 
|     if( feedback_o <> '' ) | 
|     { | 
|       instance := ActualUnitPeriod::GetInstanceText( unitperiod ); | 
|       feedback_o := SanityCheckMessage::GetFormattedMessage( instance, feedback_o ); | 
|     } | 
|      | 
|     return feedback_o = ''; | 
|   *] | 
| } |