Quintiq file version 2.0
#parent: #root
Method NewSalesLevel (
  internal[GUIComponent] parent,
  MacroPlan owner
) as SalesLevel_MP id:Method_DialogCreateEditSalesLevel_NewSalesLevel
{
  #keys: '[11660.0.426361374]'
  Body:
  [*
    // Create sales level
    
    result := Dialog.DoModal( parent );
    newobj := null( SalesLevel_MP );
    
    if( result > 0 )
    {
      newobj := SalesLevel_MP::Create( EditorName.Text(), MacroPlan, false );
    }
    
    return newobj;
  *]
}
