Quintiq file version 2.0
#parent: ListIngredient
Response OnClick () id:Response_ListIngredient_MenuNewIngredient_OnClick
{
  #keys: '[115326.0.128212308]'
  Body:
  [*
    // Create Ingredient
    dlg := construct( DialogCreateEditIngredient );
    e := dlg.NewIngredient( this );
    
    if ( not isnull( e ) )
    {
      ListIngredient.SelectByKey( e.Key() );
    
    }
  *]
  DefinitionID => /ListIngredient/Responsedef_ListIngredient_Menu_OnClick
  Initiator: 'MenuNewIngredient'
  Precondition:
  [*
    return MacroPlan::HasMacroPlan( MacroPlan, feedback );
  *]
  UserRequiresReadWrite: true
}
