Quintiq file version 2.0
#parent: ButtonRunInventoryOptimization
Response OnClick () id:Response_FormReviewInventoryOptimization_ButtonRunInventoryOptimization_OnClick
{
  #keys: '[113402.0.931554877]'
  Body:
  [*
    // Open the run inventory optimization dialog
    algorithm := shadow( MacroPlan.DEPRECATED_InventoryOptimization() )
    dlg := construct( DialogInventoryOptimization );
    dlg.Data( algorithm );
    dlg.RunInventoryOptimization( this );
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    return MacroPlan::HasMacroPlan( MacroPlan, feedback )
           and DEPRECATED_InventoryOptimization::IsNotRunningInventoryOptimization( MacroPlan.DEPRECATED_InventoryOptimization(), feedback );
  *]
}
