Quintiq file version 2.0 
 | 
#parent: Toolbar835/btnOk 
 | 
Response OnClick () id:Response_Toolbar835_btnOk_OnClick 
 | 
{ 
 | 
  #keys: '[142576.0.84642697]' 
 | 
  Body: 
 | 
  [* 
 | 
    Dialog.SetAttributesBeforeOnApplyData(); 
 | 
    Dialog.ApplyChanges(); 
 | 
    Dialog.EndModal(1); 
 | 
  *] 
 | 
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick' 
 | 
  Precondition: 
 | 
  [* 
 | 
    sanitycheckfeedback := ''; 
 | 
    return SalesDemandBase::ValidateInput( feedback, 
 | 
                                           sanitycheckfeedback, 
 | 
                                           MacroPlan, 
 | 
                                           null( CustomerOrder ), 
 | 
                                           SelectionSalesSegment.Data(), 
 | 
                                           SelectionStockingPoint.Data(), 
 | 
                                           SelectionProduct.Data(), 
 | 
                                           GUIDateTimeSelectorOrderDate.DateTime().Date(), 
 | 
                                           GUIDateTimeSelectorOrderDate.DateTime().Date(), 
 | 
                                           SelectionCurrency.Data(), 
 | 
                                           SelectionUnitOfMeasure.Data(), 
 | 
                                           ApplicationLibMacroPlanner.FormatStringToReal( EditorQuantity.Text() ), 
 | 
                                           ApplicationLibMacroPlanner.FormatStringToReal( EditorPrice.Text() ), 
 | 
                                           SelectionPriority.Data(), 
 | 
                                           0.0, 
 | 
                                           Dialog.CheckBoxIsExcludedFromFulfillmentKPI().Checked(), 
 | 
                                           false ); 
 | 
  *] 
 | 
} 
 |