| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod ValidateInput ( | 
|   output String feedback_o, | 
|   output String sanitycheckfeedback_o, | 
|   Real defaultquantity, | 
|   OperationInputOutput operationio | 
| ) declarative remote as Boolean | 
| { | 
|   Description: 'Validate input for factor' | 
|   TextBody: | 
|   [* | 
|     if( defaultquantity <= 0 ) | 
|     { | 
|       feedback_o := Translations::MP_OperationInputOutput_ViolateHasValidQuantity( defaultquantity ); | 
|       sanitycheckfeedback_o := SanityCheckCategoryLevel::GetSanityCheckCategoryDataIssue(); | 
|     } | 
|      | 
|     else if( isnull( operationio.PISPNodeInRouting() ) and operationio.OperationBOM( relsize ) >0 ) | 
|     { | 
|       operationbom := operationio.OperationBOM(); | 
|       if( not operationbom.HasValidProduct() ) | 
|       { | 
|         feedback_o := Translations::MP_OperationInputOutput_ProductNotExists( operationio.ProductID() ); | 
|         sanitycheckfeedback_o := SanityCheckCategoryLevel::GetSanityCheckCategoryDataIssue(); | 
|       } | 
|     }          | 
|      | 
|      | 
|     if( feedback_o <> '' ) | 
|     { | 
|       instance := OperationInputOutput::GetInstanceText( operationio ); | 
|       feedback_o := SanityCheckMessage::GetFormattedMessage( instance, feedback_o ); | 
|     } | 
|      | 
|     return feedback_o = ''; | 
|   *] | 
| } |