| Quintiq file version 2.0 | 
| #parent: #root | 
| Method ValidateInput () derived id:Method_DialogCreateEditOperationCost_ValidateInput | 
| { | 
|   #keys: '[113694.2.554496807]' | 
|   BaseType => //DialogCreateEditAccountCost/Method_DialogCreateEditAccountCost_ValidateInput | 
|   Body: | 
|   [* | 
|     // Validate dialog input | 
|     // Override in product related costs dialog. | 
|     feedback_o := ''; | 
|      | 
|     if( not Dialog.GetIsUniqueCost() ) | 
|     { | 
|       feedback_o := Translations::MP_AccountCost_ValidateInput_IsNotUnique(); | 
|     } | 
|     else | 
|     { | 
|        | 
|       sanitycheckfb := ''; | 
|       OperationCost::ValidateInput( feedback_o, | 
|                                     sanitycheckfb, | 
|                                     SelectionAccount.Data(), | 
|                                     StringSelectionCostDriver.BoundValue(), | 
|                                     GUIDateTimeSelectorStart.DateTime().Date(), | 
|                                     StringSelectionTimeUnit.BoundValue(), | 
|                                     ApplicationLibMacroPlanner.FormatStringToNumber( EditorLengthOfTime.Text() ), | 
|                                     ApplicationLibMacroPlanner.FormatStringToReal( EditorCost.Text() ), | 
|                                     Dialog.Data().WrappedInstance(), | 
|                                     guard( DataHolderOperation.Data().WrappedInstance().Unit(),  | 
|                                            guard( Dialog.Data().WrappedInstance().Operation().Unit(), null( Unit ) ) ) ); | 
|            | 
|     } | 
|      | 
|     return feedback_o = ''; | 
|   *] | 
| } |