From d228ef77782929f271dfd125f5fe0d9204033d2f Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 9 Mar 2017 15:54:30 +1300 Subject: [PATCH] Towards CRM-19715, Remove Close Accounting Period code Remove the Close Accounting Period form. This is a part of #9498 which is stand alone & reduces the of that PR. There are some things in the PR that need more work, but this part can be done in isolation --- CRM/Contribute/Form/CloseAccPeriod.php | 133 ------------------ CRM/Contribute/xml/Menu/Contribute.xml | 9 -- CRM/Upgrade/Incremental/sql/4.7.18.mysql.tpl | 4 + CRM/Upgrade/Incremental/sql/4.7.8.mysql.tpl | 5 - sql/civicrm_generated.mysql | 2 +- .../CRM/Contribute/Form/CloseAccPeriod.tpl | 34 ----- .../WebTest/Contribute/AccrualSettingTest.php | 86 ----------- xml/templates/civicrm_navigation.tpl | 1 - 8 files changed, 5 insertions(+), 269 deletions(-) delete mode 100644 CRM/Contribute/Form/CloseAccPeriod.php delete mode 100644 templates/CRM/Contribute/Form/CloseAccPeriod.tpl delete mode 100644 tests/phpunit/WebTest/Contribute/AccrualSettingTest.php diff --git a/CRM/Contribute/Form/CloseAccPeriod.php b/CRM/Contribute/Form/CloseAccPeriod.php deleted file mode 100644 index 3bb79687189d..000000000000 --- a/CRM/Contribute/Form/CloseAccPeriod.php +++ /dev/null @@ -1,133 +0,0 @@ -get('closing_date'); - if (empty($period)) { - $prior = CRM_Contribute_BAO_Contribution::checkContributeSettings('prior_financial_period'); - } - else { - $defaults['closing_date'] = $period; - return $defaults; - } - if (!empty($prior)) { - $period = array( - 'M' => date('n', strtotime($prior)), - 'd' => date('j', strtotime($prior)), - ); - if ($period['M'] == 1) { - $period['M'] = 12; - } - else { - $period['M']--; - } - $defaults['closing_date'] = $period; - } - else { - $defaults['closing_date'] = array( - 'M' => date('n', strtotime("-1 month")), - 'd' => date('j'), - ); - } - return $defaults; - } - - /** - * Build the form object. - */ - public function buildQuickForm() { - $this->add('date', 'closing_date', ts('Accounting Period to Close'), CRM_Core_SelectValues::date(NULL, 'M d'), TRUE); - $confirmClose = ts('Are you sure you want to close accounting period?'); - $this->addButtons(array( - array( - 'type' => 'cancel', - 'name' => ts('Cancel'), - ), - array( - 'type' => 'upload', - 'name' => ts('Close Accounting Period'), - 'js' => array('onclick' => 'return confirm(\'' . $confirmClose . '\');'), - ), - ) - ); - } - - /** - * Global form rule. - * - * @param array $fields - * The input form values. - * @param array $files - * The uploaded files if any. - * @param $self - * - */ - public static function formRule($fields, $files, $self) { - } - - /** - * Process the form submission. - */ - public function postProcess() { - // store the submitted values in an array - $params = $this->controller->exportValues($this->_name); - // Create activity - $activityType = CRM_Core_OptionGroup::getValue('activity_type', - 'Close Accounting Period', - 'name' - ); - $activityParams = array( - 'source_contact_id' => CRM_Core_Session::singleton()->get('userID'), - 'assignee_contact_id' => CRM_Core_Session::singleton()->get('userID'), - 'activity_type_id' => $activityType, - 'subject' => ts('Close Accounting Period'), - 'status_id' => CRM_Core_OptionGroup::getValue('activity_status', - 'Completed', - 'name' - ), - 'activity_date_time' => date('YmdHis'), - ); - CRM_Activity_BAO_Activity::create($activityParams); - // Set Prior Financial Period - $priorFinPeriod = $params['closing_date']['M'] . '/' . $params['closing_date']['d'] . '/' . date('Y'); - Civi::settings()->set('prior_financial_period', date('m/d/Y', strtotime($priorFinPeriod))); - // Set closing date - Civi::settings()->set('closing_date', $params['closing_date']); - CRM_Core_Session::setStatus(ts("Accounting Period has been closed successfully!"), ts('Success'), 'success'); - } - -} diff --git a/CRM/Contribute/xml/Menu/Contribute.xml b/CRM/Contribute/xml/Menu/Contribute.xml index c303bcf26f28..66b318e5f3a5 100644 --- a/CRM/Contribute/xml/Menu/Contribute.xml +++ b/CRM/Contribute/xml/Menu/Contribute.xml @@ -318,15 +318,6 @@ 630 CiviContribute - - civicrm/admin/contribute/closeaccperiod - Close Accounting Period - CRM_Contribute_Form_CloseAccPeriod - access CiviContribute,administer CiviCRM,administer Accounting - 1 - 640 - CiviContribute - civicrm/ajax/softcontributionlist CRM_Contribute_Page_AJAX::getSoftContributionRows diff --git a/CRM/Upgrade/Incremental/sql/4.7.18.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.7.18.mysql.tpl index 0e9e08a4ca85..a5cf38f85d78 100644 --- a/CRM/Upgrade/Incremental/sql/4.7.18.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/4.7.18.mysql.tpl @@ -68,3 +68,7 @@ UPDATE `civicrm_state_province` SET `name`='Uttarakhand', `abbreviation`='UT' WH UPDATE `civicrm_state_province` SET `name`='Yunlin County' WHERE `name` = 'Yunlin Conuty'; UPDATE `civicrm_country` SET `name`='Palestine, State of' WHERE `name` = 'Palestinian Territory'; UPDATE `civicrm_country` SET `name`='Virgin Islands, British' WHERE `name` = 'Virgin Islands,British'; + +--- CRM-19715 Remove Close Accounting Period code - now in an extension. +DELETE FROM civicrm_navigation +WHERE url = 'civicrm/admin/contribute/closeaccperiod?reset=1' AND name = 'Close Accounting Period'; diff --git a/CRM/Upgrade/Incremental/sql/4.7.8.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.7.8.mysql.tpl index a7fca7aced84..146fbcefb9ac 100644 --- a/CRM/Upgrade/Incremental/sql/4.7.8.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/4.7.8.mysql.tpl @@ -15,8 +15,3 @@ SELECT @contributionNavId := id, @domainID := domain_id FROM civicrm_navigation SELECT @navMaxWeight := MAX(ROUND(weight))+1 from civicrm_navigation WHERE parent_id = @contributionNavId; UPDATE civicrm_navigation SET has_separator = 1 WHERE name = 'Manage Price Sets' AND parent_id = @contributionNavId; - -INSERT INTO civicrm_navigation - (domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight) -VALUES - (@domainID, 'civicrm/admin/contribute/closeaccperiod?reset=1', '{ts escape="sql" skip="true"}Close Accounting Period{/ts}', 'Close Accounting Period', 'access CiviContribute,administer CiviCRM,administer Accounting', 'AND', @contributionNavId, '1', NULL, @navMaxWeight); diff --git a/sql/civicrm_generated.mysql b/sql/civicrm_generated.mysql index e7c68633f2ff..a27b7ebecce8 100644 --- a/sql/civicrm_generated.mysql +++ b/sql/civicrm_generated.mysql @@ -976,7 +976,7 @@ UNLOCK TABLES; LOCK TABLES `civicrm_navigation` WRITE; /*!40000 ALTER TABLE `civicrm_navigation` DISABLE KEYS */; -INSERT INTO `civicrm_navigation` (`id`, `domain_id`, `label`, `name`, `url`, `permission`, `permission_operator`, `parent_id`, `is_active`, `has_separator`, `weight`) VALUES (1,1,'Home','Home','civicrm/dashboard?reset=1',NULL,'',NULL,1,NULL,0),(2,1,'Search','Search...',NULL,NULL,'',NULL,1,NULL,10),(3,1,'Find Contacts','Find Contacts','civicrm/contact/search?reset=1',NULL,'',2,1,NULL,1),(4,1,'Advanced Search','Advanced Search','civicrm/contact/search/advanced?reset=1',NULL,'',2,1,NULL,2),(5,1,'Full-text Search','Full-text Search','civicrm/contact/search/custom?csid=15&reset=1',NULL,'',2,1,NULL,3),(6,1,'Search Builder','Search Builder','civicrm/contact/search/builder?reset=1',NULL,'',2,1,1,4),(7,1,'Find Cases','Find Cases','civicrm/case/search?reset=1','access my cases and activities,access all cases and activities','OR',2,1,NULL,5),(8,1,'Find Contributions','Find Contributions','civicrm/contribute/search?reset=1','access CiviContribute','',2,1,NULL,6),(9,1,'Find Mailings','Find Mailings','civicrm/mailing?reset=1','access CiviMail','',2,1,NULL,7),(10,1,'Find Memberships','Find Memberships','civicrm/member/search?reset=1','access CiviMember','',2,1,NULL,8),(11,1,'Find Participants','Find Participants','civicrm/event/search?reset=1','access CiviEvent','',2,1,NULL,9),(12,1,'Find Pledges','Find Pledges','civicrm/pledge/search?reset=1','access CiviPledge','',2,1,NULL,10),(13,1,'Find Activities','Find Activities','civicrm/activity/search?reset=1',NULL,'',2,1,1,11),(14,1,'Custom Searches','Custom Searches','civicrm/contact/search/custom/list?reset=1',NULL,'',2,1,NULL,12),(15,1,'Contacts','Contacts',NULL,NULL,'',NULL,1,NULL,20),(16,1,'New Individual','New Individual','civicrm/contact/add?reset=1&ct=Individual','add contacts','',15,1,NULL,1),(17,1,'New Household','New Household','civicrm/contact/add?reset=1&ct=Household','add contacts','',15,1,NULL,2),(18,1,'New Organization','New Organization','civicrm/contact/add?reset=1&ct=Organization','add contacts','',15,1,1,3),(19,1,'Contact Reports','Contact Reports','civicrm/report/list?compid=99&reset=1','access CiviReport','',15,1,1,4),(20,1,'New Activity','New Activity','civicrm/activity?reset=1&action=add&context=standalone',NULL,'',15,1,NULL,5),(21,1,'New Email','New Email','civicrm/activity/email/add?atype=3&action=add&reset=1&context=standalone',NULL,'',15,1,1,6),(22,1,'Import Contacts','Import Contacts','civicrm/import/contact?reset=1','import contacts','',15,1,NULL,7),(23,1,'Import Activities','Import Activities','civicrm/import/activity?reset=1','import contacts','',15,1,1,8),(24,1,'New Group','New Group','civicrm/group/add?reset=1','edit groups','',15,1,NULL,9),(25,1,'Manage Groups','Manage Groups','civicrm/group?reset=1','access CiviCRM','',15,1,1,10),(26,1,'New Tag','New Tag','civicrm/tag?reset=1&action=add','manage tags','',15,1,NULL,11),(27,1,'Manage Tags (Categories)','Manage Tags (Categories)','civicrm/tag?reset=1','manage tags','',15,1,1,12),(28,1,'Find and Merge Duplicate Contacts','Find and Merge Duplicate Contacts','civicrm/contact/deduperules?reset=1','administer dedupe rules,merge duplicate contacts','OR',15,1,NULL,13),(29,1,'Contributions','Contributions',NULL,'access CiviContribute','',NULL,1,NULL,30),(30,1,'Dashboard','Dashboard','civicrm/contribute?reset=1','access CiviContribute','',29,1,NULL,1),(31,1,'New Contribution','New Contribution','civicrm/contribute/add?reset=1&action=add&context=standalone','access CiviContribute,edit contributions','AND',29,1,NULL,2),(32,1,'Find Contributions','Find Contributions','civicrm/contribute/search?reset=1','access CiviContribute','',29,1,NULL,3),(33,1,'Contribution Reports','Contribution Reports','civicrm/report/list?compid=2&reset=1','access CiviContribute','',29,1,1,4),(34,1,'Import Contributions','Import Contributions','civicrm/contribute/import?reset=1','access CiviContribute,edit contributions','AND',29,1,1,5),(35,1,'Batch Data Entry','Batch Data Entry','civicrm/batch?reset=1','access CiviContribute','',29,1,NULL,7),(36,1,'Pledges','Pledges',NULL,'access CiviPledge','',29,1,1,6),(37,1,'Accounting Batches','Accounting Batches',NULL,'view own manual batches,view all manual batches','OR',29,1,1,8),(38,1,'Dashboard','Dashboard','civicrm/pledge?reset=1','access CiviPledge','',36,1,NULL,1),(39,1,'New Pledge','New Pledge','civicrm/pledge/add?reset=1&action=add&context=standalone','access CiviPledge,edit pledges','AND',36,1,NULL,2),(40,1,'Find Pledges','Find Pledges','civicrm/pledge/search?reset=1','access CiviPledge','',36,1,NULL,3),(41,1,'Pledge Reports','Pledge Reports','civicrm/report/list?compid=6&reset=1','access CiviPledge','',36,1,0,4),(42,1,'New Contribution Page','New Contribution Page','civicrm/admin/contribute/add?reset=1&action=add','access CiviContribute,administer CiviCRM','AND',29,1,NULL,9),(43,1,'Manage Contribution Pages','Manage Contribution Pages','civicrm/admin/contribute?reset=1','access CiviContribute,administer CiviCRM','AND',29,1,1,10),(44,1,'Personal Campaign Pages','Personal Campaign Pages','civicrm/admin/pcp?reset=1&page_type=contribute','access CiviContribute,administer CiviCRM','AND',29,1,NULL,11),(45,1,'Premiums (Thank-you Gifts)','Premiums','civicrm/admin/contribute/managePremiums?reset=1','access CiviContribute,administer CiviCRM','AND',29,1,1,12),(46,1,'New Price Set','New Price Set','civicrm/admin/price?reset=1&action=add','access CiviContribute,administer CiviCRM','AND',29,1,NULL,13),(47,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1','access CiviContribute,administer CiviCRM','AND',29,1,1,14),(48,1,'Close Accounting Period','Close Accounting Period','civicrm/admin/contribute/closeaccperiod?reset=1','access CiviContribute,administer CiviCRM,administer Accounting','AND',29,1,NULL,15),(49,1,'New Batch','New Batch','civicrm/financial/batch?reset=1&action=add','create manual batch','AND',37,1,NULL,1),(50,1,'Open Batches','Open Batches','civicrm/financial/financialbatches?reset=1&batchStatus=1','view own manual batches,view all manual batches','OR',37,1,NULL,2),(51,1,'Closed Batches','Closed Batches','civicrm/financial/financialbatches?reset=1&batchStatus=2','view own manual batches,view all manual batches','OR',37,1,NULL,3),(52,1,'Exported Batches','Exported Batches','civicrm/financial/financialbatches?reset=1&batchStatus=5','view own manual batches,view all manual batches','OR',37,1,NULL,4),(53,1,'Events','Events',NULL,'access CiviEvent','',NULL,1,NULL,40),(54,1,'Dashboard','CiviEvent Dashboard','civicrm/event?reset=1','access CiviEvent','',53,1,NULL,1),(55,1,'Register Event Participant','Register Event Participant','civicrm/participant/add?reset=1&action=add&context=standalone','access CiviEvent,edit event participants','AND',53,1,NULL,2),(56,1,'Find Participants','Find Participants','civicrm/event/search?reset=1','access CiviEvent','',53,1,NULL,3),(57,1,'Event Reports','Event Reports','civicrm/report/list?compid=1&reset=1','access CiviEvent','',53,1,1,4),(58,1,'Import Participants','Import Participants','civicrm/event/import?reset=1','access CiviEvent,edit event participants','AND',53,1,1,5),(59,1,'New Event','New Event','civicrm/event/add?reset=1&action=add','access CiviEvent,edit all events','AND',53,1,NULL,6),(60,1,'Manage Events','Manage Events','civicrm/event/manage?reset=1','access CiviEvent,edit all events','AND',53,1,1,7),(61,1,'Personal Campaign Pages','Personal Campaign Pages','civicrm/admin/pcp?reset=1&page_type=event','access CiviEvent,administer CiviCRM','AND',53,1,1,8),(62,1,'Event Templates','Event Templates','civicrm/admin/eventTemplate?reset=1','access CiviEvent,edit all events','AND',53,1,1,9),(63,1,'New Price Set','New Price Set','civicrm/admin/price?reset=1&action=add','access CiviEvent,edit all events','AND',53,1,NULL,10),(64,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1','access CiviEvent,edit all events','AND',53,1,NULL,11),(65,1,'Mailings','Mailings',NULL,'access CiviMail,create mailings,approve mailings,schedule mailings','OR',NULL,1,NULL,50),(66,1,'New Mailing','New Mailing','civicrm/mailing/send?reset=1','access CiviMail,create mailings','OR',65,1,NULL,1),(67,1,'Draft and Unscheduled Mailings','Draft and Unscheduled Mailings','civicrm/mailing/browse/unscheduled?reset=1&scheduled=false','access CiviMail,create mailings,schedule mailings','OR',65,1,NULL,2),(68,1,'Scheduled and Sent Mailings','Scheduled and Sent Mailings','civicrm/mailing/browse/scheduled?reset=1&scheduled=true','access CiviMail,approve mailings,create mailings,schedule mailings','OR',65,1,NULL,3),(69,1,'Archived Mailings','Archived Mailings','civicrm/mailing/browse/archived?reset=1','access CiviMail,create mailings','OR',65,1,NULL,4),(70,1,'Mailing Reports','Mailing Reports','civicrm/report/list?compid=4&reset=1','access CiviMail','',65,1,1,5),(71,1,'Headers, Footers, and Automated Messages','Headers, Footers, and Automated Messages','civicrm/admin/component?reset=1','access CiviMail,administer CiviCRM','AND',65,1,NULL,6),(72,1,'Message Templates','Message Templates','civicrm/admin/messageTemplates?reset=1','edit message templates','',65,1,NULL,7),(73,1,'From Email Addresses','From Email Addresses','civicrm/admin/options/from_email_address?reset=1','administer CiviCRM','',65,1,1,8),(74,1,'New SMS','New SMS','civicrm/sms/send?reset=1','administer CiviCRM',NULL,65,1,NULL,9),(75,1,'Find Mass SMS','Find Mass SMS','civicrm/mailing/browse?reset=1&sms=1','administer CiviCRM',NULL,65,1,1,10),(76,1,'New A/B Test','New A/B Test','civicrm/a/#/abtest/new','access CiviMail','',65,1,NULL,15),(77,1,'Manage A/B Tests','Manage A/B Tests','civicrm/a/#/abtest','access CiviMail','',65,1,1,16),(78,1,'Memberships','Memberships',NULL,'access CiviMember','',NULL,1,NULL,60),(79,1,'Dashboard','Dashboard','civicrm/member?reset=1','access CiviMember','',78,1,NULL,1),(80,1,'New Membership','New Membership','civicrm/member/add?reset=1&action=add&context=standalone','access CiviMember,edit memberships','AND',78,1,NULL,2),(81,1,'Find Memberships','Find Memberships','civicrm/member/search?reset=1','access CiviMember','',78,1,NULL,3),(82,1,'Membership Reports','Membership Reports','civicrm/report/list?compid=3&reset=1','access CiviMember','',78,1,1,4),(83,1,'Batch Data Entry','Batch Data Entry','civicrm/batch?reset=1','access CiviContribute','',78,1,NULL,5),(84,1,'Import Memberships','Import Members','civicrm/member/import?reset=1','access CiviMember,edit memberships','AND',78,1,1,6),(85,1,'New Price Set','New Price Set','civicrm/admin/price?reset=1&action=add','access CiviMember,administer CiviCRM','AND',78,1,NULL,7),(86,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1','access CiviMember,administer CiviCRM','AND',78,1,NULL,8),(87,1,'Campaigns','Campaigns',NULL,'interview campaign contacts,release campaign contacts,reserve campaign contacts,manage campaign,administer CiviCampaign,gotv campaign contacts','OR',NULL,1,NULL,70),(88,1,'Dashboard','Dashboard','civicrm/campaign?reset=1','manage campaign,administer CiviCampaign','OR',87,1,NULL,1),(89,1,'Surveys','Survey Dashboard','civicrm/campaign?reset=1&subPage=survey','manage campaign,administer CiviCampaign','OR',88,1,NULL,1),(90,1,'Petitions','Petition Dashboard','civicrm/campaign?reset=1&subPage=petition','manage campaign,administer CiviCampaign','OR',88,1,NULL,2),(91,1,'Campaigns','Campaign Dashboard','civicrm/campaign?reset=1&subPage=campaign','manage campaign,administer CiviCampaign','OR',88,1,NULL,3),(92,1,'New Campaign','New Campaign','civicrm/campaign/add?reset=1','manage campaign,administer CiviCampaign','OR',87,1,NULL,2),(93,1,'New Survey','New Survey','civicrm/survey/add?reset=1','manage campaign,administer CiviCampaign','OR',87,1,NULL,3),(94,1,'New Petition','New Petition','civicrm/petition/add?reset=1','manage campaign,administer CiviCampaign','OR',87,1,NULL,4),(95,1,'Reserve Respondents','Reserve Respondents','civicrm/survey/search?reset=1&op=reserve','administer CiviCampaign,manage campaign,reserve campaign contacts','OR',87,1,NULL,5),(96,1,'Interview Respondents','Interview Respondents','civicrm/survey/search?reset=1&op=interview','administer CiviCampaign,manage campaign,interview campaign contacts','OR',87,1,NULL,6),(97,1,'Release Respondents','Release Respondents','civicrm/survey/search?reset=1&op=release','administer CiviCampaign,manage campaign,release campaign contacts','OR',87,1,NULL,7),(98,1,'Campaign Reports','Campaign Reports','civicrm/report/list?compid=9&reset=1','interview campaign contacts,release campaign contacts,reserve campaign contacts,manage campaign,administer CiviCampaign,gotv campaign contacts','OR',87,1,1,8),(99,1,'Conduct Survey','Conduct Survey','civicrm/campaign/vote?reset=1','administer CiviCampaign,manage campaign,reserve campaign contacts,interview campaign contacts','OR',87,1,NULL,9),(100,1,'GOTV (Voter Tracking)','Voter Listing','civicrm/campaign/gotv?reset=1','administer CiviCampaign,manage campaign,release campaign contacts,gotv campaign contacts','OR',87,1,NULL,10),(101,1,'Cases','Cases',NULL,'access my cases and activities,access all cases and activities','OR',NULL,1,NULL,80),(102,1,'Dashboard','Dashboard','civicrm/case?reset=1','access my cases and activities,access all cases and activities','OR',101,1,NULL,1),(103,1,'New Case','New Case','civicrm/case/add?reset=1&action=add&atype=13&context=standalone','add cases,access all cases and activities','OR',101,1,NULL,2),(104,1,'Find Cases','Find Cases','civicrm/case/search?reset=1','access my cases and activities,access all cases and activities','OR',101,1,1,3),(105,1,'Case Reports','Case Reports','civicrm/report/list?compid=7&reset=1','access my cases and activities,access all cases and activities,administer CiviCase','OR',101,1,0,4),(106,1,'Grants','Grants',NULL,'access CiviGrant','',NULL,1,NULL,90),(107,1,'Dashboard','Dashboard','civicrm/grant?reset=1','access CiviGrant','',106,1,NULL,1),(108,1,'New Grant','New Grant','civicrm/grant/add?reset=1&action=add&context=standalone','access CiviGrant,edit grants','AND',106,1,NULL,2),(109,1,'Find Grants','Find Grants','civicrm/grant/search?reset=1','access CiviGrant','',106,1,1,3),(110,1,'Grant Reports','Grant Reports','civicrm/report/list?compid=5&reset=1','access CiviGrant','',106,1,0,4),(111,1,'Administer','Administer',NULL,'administer CiviCRM','',NULL,1,NULL,100),(112,1,'Administration Console','Administration Console','civicrm/admin?reset=1','administer CiviCRM','',111,1,NULL,1),(113,1,'System Status','System Status','civicrm/a/#/status','administer CiviCRM','',112,1,NULL,0),(114,1,'Configuration Checklist','Configuration Checklist','civicrm/admin/configtask?reset=1','administer CiviCRM','',112,1,NULL,1),(115,1,'Customize Data and Screens','Customize Data and Screens',NULL,'administer CiviCRM','',111,1,NULL,3),(116,1,'Custom Fields','Custom Fields','civicrm/admin/custom/group?reset=1','administer CiviCRM','',115,1,NULL,1),(117,1,'Profiles','Profiles','civicrm/admin/uf/group?reset=1','administer CiviCRM','',115,1,NULL,2),(118,1,'Tags (Categories)','Tags (Categories)','civicrm/tag?reset=1','administer CiviCRM','',115,1,NULL,3),(119,1,'Activity Types','Activity Types','civicrm/admin/options/activity_type?reset=1','administer CiviCRM','',115,1,NULL,4),(120,1,'Relationship Types','Relationship Types','civicrm/admin/reltype?reset=1','administer CiviCRM','',115,1,NULL,5),(121,1,'Contact Types','Contact Types','civicrm/admin/options/subtype?reset=1','administer CiviCRM','',115,1,NULL,6),(122,1,'Display Preferences','Display Preferences','civicrm/admin/setting/preferences/display?reset=1','administer CiviCRM','',115,1,NULL,9),(123,1,'Search Preferences','Search Preferences','civicrm/admin/setting/search?reset=1','administer CiviCRM','',115,1,NULL,10),(124,1,'Date Preferences','Date Preferences','civicrm/admin/setting/preferences/date?reset=1','administer CiviCRM','',115,1,NULL,11),(125,1,'Navigation Menu','Navigation Menu','civicrm/admin/menu?reset=1','administer CiviCRM','',115,1,NULL,12),(126,1,'Word Replacements','Word Replacements','civicrm/admin/options/wordreplacements?reset=1','administer CiviCRM','',115,1,NULL,13),(127,1,'Manage Custom Searches','Manage Custom Searches','civicrm/admin/options/custom_search?reset=1','administer CiviCRM','',115,1,NULL,14),(128,1,'Dropdown Options','Dropdown Options',NULL,'administer CiviCRM','',115,1,NULL,8),(129,1,'Gender Options','Gender Options','civicrm/admin/options/gender?reset=1','administer CiviCRM','',128,1,NULL,1),(130,1,'Individual Prefixes (Ms, Mr...)','Individual Prefixes (Ms, Mr...)','civicrm/admin/options/individual_prefix?reset=1','administer CiviCRM','',128,1,NULL,2),(131,1,'Individual Suffixes (Jr, Sr...)','Individual Suffixes (Jr, Sr...)','civicrm/admin/options/individual_suffix?reset=1','administer CiviCRM','',128,1,NULL,3),(132,1,'Instant Messenger Services','Instant Messenger Services','civicrm/admin/options/instant_messenger_service?reset=1','administer CiviCRM','',128,1,NULL,4),(133,1,'Location Types (Home, Work...)','Location Types (Home, Work...)','civicrm/admin/locationType?reset=1','administer CiviCRM','',128,1,NULL,5),(134,1,'Mobile Phone Providers','Mobile Phone Providers','civicrm/admin/options/mobile_provider?reset=1','administer CiviCRM','',128,1,NULL,6),(135,1,'Phone Types','Phone Types','civicrm/admin/options/phone_type?reset=1','administer CiviCRM','',128,1,NULL,7),(136,1,'Website Types','Website Types','civicrm/admin/options/website_type?reset=1','administer CiviCRM','',128,1,NULL,8),(137,1,'Communications','Communications',NULL,'administer CiviCRM','',111,1,NULL,4),(138,1,'Organization Address and Contact Info','Organization Address and Contact Info','civicrm/admin/domain?action=update&reset=1','administer CiviCRM','',137,1,NULL,1),(139,1,'FROM Email Addresses','FROM Email Addresses','civicrm/admin/options/from_email_address?reset=1','administer CiviCRM','',137,1,NULL,2),(140,1,'Message Templates','Message Templates','civicrm/admin/messageTemplates?reset=1','administer CiviCRM','',137,1,NULL,3),(141,1,'Schedule Reminders','Schedule Reminders','civicrm/admin/scheduleReminders?reset=1','administer CiviCRM','',137,1,NULL,4),(142,1,'Preferred Communication Methods','Preferred Communication Methods','civicrm/admin/options/preferred_communication_method?reset=1','administer CiviCRM','',137,1,NULL,5),(143,1,'Label Formats','Label Formats','civicrm/admin/labelFormats?reset=1','administer CiviCRM','',137,1,NULL,6),(144,1,'Print Page (PDF) Formats','Print Page (PDF) Formats','civicrm/admin/pdfFormats?reset=1','administer CiviCRM','',137,1,NULL,7),(145,1,'Communication Style Options','Communication Style Options','civicrm/admin/options/communication_style?reset=1','administer CiviCRM','',137,1,NULL,8),(146,1,'Email Greeting Formats','Email Greeting Formats','civicrm/admin/options/email_greeting?reset=1','administer CiviCRM','',137,1,NULL,9),(147,1,'Postal Greeting Formats','Postal Greeting Formats','civicrm/admin/options/postal_greeting?reset=1','administer CiviCRM','',137,1,NULL,10),(148,1,'Addressee Formats','Addressee Formats','civicrm/admin/options/addressee?reset=1','administer CiviCRM','',137,1,NULL,11),(149,1,'Localization','Localization',NULL,'administer CiviCRM','',111,1,NULL,6),(150,1,'Languages, Currency, Locations','Languages, Currency, Locations','civicrm/admin/setting/localization?reset=1','administer CiviCRM','',149,1,NULL,1),(151,1,'Address Settings','Address Settings','civicrm/admin/setting/preferences/address?reset=1','administer CiviCRM','',149,1,NULL,2),(152,1,'Date Formats','Date Formats','civicrm/admin/setting/date?reset=1','administer CiviCRM','',149,1,NULL,3),(153,1,'Preferred Language Options','Preferred Language Options','civicrm/admin/options/languages?reset=1','administer CiviCRM','',149,1,NULL,4),(154,1,'Users and Permissions','Users and Permissions',NULL,'administer CiviCRM','',111,1,NULL,7),(155,1,'Permissions (Access Control)','Permissions (Access Control)','civicrm/admin/access?reset=1','administer CiviCRM','',154,1,NULL,1),(156,1,'Synchronize Users to Contacts','Synchronize Users to Contacts','civicrm/admin/synchUser?reset=1','administer CiviCRM','',154,1,NULL,2),(157,1,'System Settings','System Settings',NULL,'administer CiviCRM','',111,1,NULL,8),(158,1,'Components','Enable Components','civicrm/admin/setting/component?reset=1','administer CiviCRM','',157,1,NULL,1),(159,1,'Connections','Connections','civicrm/a/#/cxn','administer CiviCRM','',157,1,NULL,2),(160,1,'Extensions','Manage Extensions','civicrm/admin/extensions?reset=1','administer CiviCRM','',157,1,1,3),(161,1,'Cleanup Caches and Update Paths','Cleanup Caches and Update Paths','civicrm/admin/setting/updateConfigBackend?reset=1','administer CiviCRM','',157,1,NULL,4),(162,1,'CMS Database Integration','CMS Integration','civicrm/admin/setting/uf?reset=1','administer CiviCRM','',157,1,NULL,5),(163,1,'Debugging and Error Handling','Debugging and Error Handling','civicrm/admin/setting/debug?reset=1','administer CiviCRM','',157,1,NULL,6),(164,1,'Directories','Directories','civicrm/admin/setting/path?reset=1','administer CiviCRM','',157,1,NULL,7),(165,1,'Import/Export Mappings','Import/Export Mappings','civicrm/admin/mapping?reset=1','administer CiviCRM','',157,1,NULL,8),(166,1,'Mapping and Geocoding','Mapping and Geocoding','civicrm/admin/setting/mapping?reset=1','administer CiviCRM','',157,1,NULL,9),(167,1,'Misc (Undelete, PDFs, Limits, Logging, Captcha, etc.)','Misc (Undelete, PDFs, Limits, Logging, Captcha, etc.)','civicrm/admin/setting/misc?reset=1','administer CiviCRM','',157,1,NULL,10),(168,1,'Multi Site Settings','Multi Site Settings','civicrm/admin/setting/preferences/multisite?reset=1','administer CiviCRM','',157,1,NULL,11),(169,1,'Option Groups','Option Groups','civicrm/admin/options?reset=1','administer CiviCRM','',157,1,NULL,12),(170,1,'Outbound Email (SMTP/Sendmail)','Outbound Email','civicrm/admin/setting/smtp?reset=1','administer CiviCRM','',157,1,NULL,13),(171,1,'Payment Processors','Payment Processors','civicrm/admin/paymentProcessor?reset=1','administer CiviCRM','',157,1,NULL,14),(172,1,'Resource URLs','Resource URLs','civicrm/admin/setting/url?reset=1','administer CiviCRM','',157,1,NULL,15),(173,1,'Safe File Extensions','Safe File Extensions','civicrm/admin/options/safe_file_extension?reset=1','administer CiviCRM','',157,1,NULL,16),(174,1,'Scheduled Jobs','Scheduled Jobs','civicrm/admin/job?reset=1','administer CiviCRM','',157,1,NULL,17),(175,1,'SMS Providers','SMS Providers','civicrm/admin/sms/provider?reset=1','administer CiviCRM','',157,1,NULL,18),(176,1,'CiviCampaign','CiviCampaign',NULL,'administer CiviCampaign,administer CiviCRM','AND',111,1,NULL,9),(177,1,'Survey Types','Survey Types','civicrm/admin/campaign/surveyType?reset=1','administer CiviCampaign','',176,1,NULL,1),(178,1,'Campaign Types','Campaign Types','civicrm/admin/options/campaign_type?reset=1','administer CiviCampaign','',176,1,NULL,2),(179,1,'Campaign Status','Campaign Status','civicrm/admin/options/campaign_status?reset=1','administer CiviCampaign','',176,1,NULL,3),(180,1,'Engagement Index','Engagement Index','civicrm/admin/options/engagement_index?reset=1','administer CiviCampaign','',176,1,NULL,4),(181,1,'CiviCampaign Component Settings','CiviCampaign Component Settings','civicrm/admin/setting/preferences/campaign?reset=1','administer CiviCampaign','',176,1,NULL,5),(182,1,'CiviCase','CiviCase',NULL,'administer CiviCase',NULL,111,1,NULL,10),(183,1,'Case Types','Case Types','civicrm/a/#/caseType','administer CiviCase',NULL,182,1,NULL,1),(184,1,'Redaction Rules','Redaction Rules','civicrm/admin/options/redaction_rule?reset=1','administer CiviCase',NULL,182,1,NULL,2),(185,1,'Case Statuses','Case Statuses','civicrm/admin/options/case_status?reset=1','administer CiviCase',NULL,182,1,NULL,3),(186,1,'Encounter Medium','Encounter Medium','civicrm/admin/options/encounter_medium?reset=1','administer CiviCase',NULL,182,1,NULL,4),(187,1,'CiviContribute','CiviContribute',NULL,'access CiviContribute,administer CiviCRM','AND',111,1,NULL,11),(188,1,'New Contribution Page','New Contribution Page','civicrm/admin/contribute?reset=1&action=add','access CiviContribute,administer CiviCRM','AND',187,1,NULL,6),(189,1,'Manage Contribution Pages','Manage Contribution Pages','civicrm/admin/contribute?reset=1','access CiviContribute,administer CiviCRM','AND',187,1,1,7),(190,1,'Personal Campaign Pages','Personal Campaign Pages','civicrm/admin/pcp?reset=1&page_type=contribute','access CiviContribute,administer CiviCRM','AND',187,1,NULL,8),(191,1,'Premiums (Thank-you Gifts)','Premiums','civicrm/admin/contribute/managePremiums?reset=1','access CiviContribute,administer CiviCRM','AND',187,1,1,9),(192,1,'Financial Types','Financial Types','civicrm/admin/financial/financialType?reset=1','access CiviContribute,administer CiviCRM','AND',187,1,NULL,10),(193,1,'Financial Accounts','Financial Accounts','civicrm/admin/financial/financialAccount?reset=1','access CiviContribute,administer CiviCRM','AND',187,1,NULL,11),(194,1,'Payment Methods','Payment Instruments','civicrm/admin/options/payment_instrument?reset=1','access CiviContribute,administer CiviCRM','AND',187,1,NULL,12),(195,1,'Accepted Credit Cards','Accepted Credit Cards','civicrm/admin/options/accept_creditcard?reset=1','access CiviContribute,administer CiviCRM','AND',187,1,NULL,13),(196,1,'Soft Credit Types','Soft Credit Types','civicrm/admin/options/soft_credit_type?reset=1','access CiviContribute,administer CiviCRM','AND',187,1,1,14),(197,1,'New Price Set','New Price Set','civicrm/admin/price?reset=1&action=add','access CiviContribute,administer CiviCRM','AND',187,1,NULL,15),(198,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1','access CiviContribute,administer CiviCRM','AND',187,1,NULL,16),(199,1,'Payment Processors','Payment Processors','civicrm/admin/paymentProcessor?reset=1','administer CiviCRM','',187,1,NULL,17),(200,1,'CiviContribute Component Settings','CiviContribute Component Settings','civicrm/admin/setting/preferences/contribute?reset=1','administer CiviCRM','',187,1,NULL,18),(201,1,'CiviEvent','CiviEvent',NULL,'access CiviEvent,administer CiviCRM','AND',111,1,NULL,12),(202,1,'New Event','New Event','civicrm/event/add?reset=1&action=add','access CiviEvent,administer CiviCRM','AND',201,1,NULL,1),(203,1,'Manage Events','Manage Events','civicrm/event/manage?reset=1','access CiviEvent,administer CiviCRM','AND',201,1,1,2),(204,1,'Personal Campaign Pages','Personal Campaign Pages','civicrm/admin/pcp?reset=1&page_type=event','access CiviEvent,administer CiviCRM','AND',201,1,1,3),(205,1,'Event Templates','Event Templates','civicrm/admin/eventTemplate?reset=1','access CiviEvent,administer CiviCRM','AND',201,1,1,4),(206,1,'New Price Set','New Price Set','civicrm/admin/price?reset=1&action=add','access CiviEvent,administer CiviCRM','AND',201,1,NULL,5),(207,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1','access CiviEvent,administer CiviCRM','AND',201,1,1,6),(208,1,'Event Types','Event Types','civicrm/admin/options/event_type?reset=1','access CiviEvent,administer CiviCRM','AND',201,1,NULL,7),(209,1,'Participant Statuses','Participant Statuses','civicrm/admin/participant_status?reset=1','access CiviEvent,administer CiviCRM','AND',201,1,NULL,8),(210,1,'Participant Roles','Participant Roles','civicrm/admin/options/participant_role?reset=1','access CiviEvent,administer CiviCRM','AND',201,1,NULL,9),(211,1,'Participant Listing Options','Participant Listing Options','civicrm/admin/options/participant_listing?reset=1','access CiviEvent,administer CiviCRM','AND',201,1,NULL,10),(212,1,'Event Name Badge Layouts','Event Name Badge Layouts','civicrm/admin/badgelayout?reset=1','access CiviEvent,administer CiviCRM','AND',201,1,NULL,11),(213,1,'Payment Processors','Payment Processors','civicrm/admin/paymentProcessor?reset=1','administer CiviCRM','',201,1,NULL,12),(214,1,'CiviEvent Component Settings','CiviEvent Component Settings','civicrm/admin/setting/preferences/event?reset=1','access CiviEvent,administer CiviCRM','AND',201,1,NULL,13),(215,1,'CiviGrant','CiviGrant',NULL,'access CiviGrant,administer CiviCRM','AND',111,1,NULL,13),(216,1,'Grant Types','Grant Types','civicrm/admin/options/grant_type?reset=1','access CiviGrant,administer CiviCRM','AND',215,1,NULL,1),(217,1,'Grant Status','Grant Status','civicrm/admin/options/grant_status?reset=1','access CiviGrant,administer CiviCRM','AND',215,1,NULL,2),(218,1,'CiviMail','CiviMail',NULL,'access CiviMail,administer CiviCRM','AND',111,1,NULL,14),(219,1,'Headers, Footers, and Automated Messages','Headers, Footers, and Automated Messages','civicrm/admin/component?reset=1','access CiviMail,administer CiviCRM','AND',218,1,NULL,1),(220,1,'Message Templates','Message Templates','civicrm/admin/messageTemplates?reset=1','administer CiviCRM','',218,1,NULL,2),(221,1,'From Email Addresses','From Email Addresses','civicrm/admin/options/from_email_address?reset=1','administer CiviCRM','',218,1,NULL,3),(222,1,'Mail Accounts','Mail Accounts','civicrm/admin/mailSettings?reset=1','access CiviMail,administer CiviCRM','AND',218,1,NULL,4),(223,1,'Mailer Settings','Mailer Settings','civicrm/admin/mail?reset=1','access CiviMail,administer CiviCRM','AND',218,1,NULL,5),(224,1,'CiviMail Component Settings','CiviMail Component Settings','civicrm/admin/setting/preferences/mailing?reset=1','access CiviMail,administer CiviCRM','AND',218,1,NULL,6),(225,1,'CiviMember','CiviMember',NULL,'access CiviMember,administer CiviCRM','AND',111,1,NULL,15),(226,1,'Membership Types','Membership Types','civicrm/admin/member/membershipType?reset=1','access CiviMember,administer CiviCRM','AND',225,1,NULL,1),(227,1,'Membership Status Rules','Membership Status Rules','civicrm/admin/member/membershipStatus?reset=1','access CiviMember,administer CiviCRM','AND',225,1,1,2),(228,1,'New Price Set','New Price Set','civicrm/admin/price?reset=1&action=add','access CiviMember,administer CiviCRM','AND',225,1,NULL,3),(229,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1','access CiviMember,administer CiviCRM','AND',225,1,NULL,4),(230,1,'CiviMember Component Settings','CiviMember Component Settings','civicrm/admin/setting/preferences/member?reset=1','access CiviMember,administer CiviCRM','AND',225,1,NULL,5),(231,1,'CiviReport','CiviReport',NULL,'access CiviReport,administer CiviCRM','AND',111,1,NULL,16),(232,1,'All Reports','All Reports','civicrm/report/list?reset=1','access CiviReport','',231,1,NULL,1),(233,1,'Create New Report from Template','Create New Report from Template','civicrm/admin/report/template/list?reset=1','administer Reports','',231,1,NULL,2),(234,1,'Manage Templates','Manage Templates','civicrm/admin/report/options/report_template?reset=1','administer Reports','',231,1,NULL,3),(235,1,'Register Report','Register Report','civicrm/admin/report/register?reset=1','administer Reports','',231,1,NULL,4),(236,1,'Support','Support',NULL,NULL,'',NULL,1,NULL,110),(237,1,'Get started','Get started','https://civicrm.org/get-started?src=iam',NULL,'AND',236,1,NULL,1),(238,1,'Documentation','Documentation','https://civicrm.org/documentation?src=iam',NULL,'AND',236,1,NULL,2),(239,1,'Ask a question','Ask a question','https://civicrm.org/ask-a-question?src=iam',NULL,'AND',236,1,NULL,3),(240,1,'Get expert help','Get expert help','https://civicrm.org/experts?src=iam',NULL,'AND',236,1,NULL,4),(241,1,'About CiviCRM','About CiviCRM','https://civicrm.org/about?src=iam',NULL,'AND',236,1,1,5),(242,1,'Register your site','Register your site','https://civicrm.org/register-your-site?src=iam&sid={sid}',NULL,'AND',236,1,NULL,6),(243,1,'Join CiviCRM','Join CiviCRM','https://civicrm.org/become-a-member?src=iam&sid={sid}',NULL,'AND',236,1,NULL,7),(244,1,'Developer','Developer',NULL,'administer CiviCRM','',236,1,1,8),(245,1,'API Explorer','API Explorer','civicrm/api','administer CiviCRM','',244,1,NULL,1),(246,1,'Developer Docs','Developer Docs','https://civicrm.org/developer-documentation?src=iam','administer CiviCRM','',244,1,NULL,3),(247,1,'Reports','Reports',NULL,'access CiviReport','',NULL,1,NULL,95),(248,1,'Contact Reports','Contact Reports','civicrm/report/list?compid=99&reset=1','administer CiviCRM','',247,1,0,1),(249,1,'Contribution Reports','Contribution Reports','civicrm/report/list?compid=2&reset=1','access CiviContribute','',247,1,0,2),(250,1,'Pledge Reports','Pledge Reports','civicrm/report/list?compid=6&reset=1','access CiviPledge','',247,1,0,3),(251,1,'Event Reports','Event Reports','civicrm/report/list?compid=1&reset=1','access CiviEvent','',247,1,0,4),(252,1,'Mailing Reports','Mailing Reports','civicrm/report/list?compid=4&reset=1','access CiviMail','',247,1,0,5),(253,1,'Membership Reports','Membership Reports','civicrm/report/list?compid=3&reset=1','access CiviMember','',247,1,0,6),(254,1,'Campaign Reports','Campaign Reports','civicrm/report/list?compid=9&reset=1','interview campaign contacts,release campaign contacts,reserve campaign contacts,manage campaign,administer CiviCampaign,gotv campaign contacts','OR',247,1,0,7),(255,1,'Case Reports','Case Reports','civicrm/report/list?compid=7&reset=1','access my cases and activities,access all cases and activities,administer CiviCase','OR',247,1,0,8),(256,1,'Grant Reports','Grant Reports','civicrm/report/list?compid=5&reset=1','access CiviGrant','',247,1,0,9),(257,1,'All Reports','All Reports','civicrm/report/list?reset=1','access CiviReport','',247,1,1,10),(258,1,'My Reports','My Reports','civicrm/report/list?myreports=1&reset=1','access CiviReport','',247,1,1,11),(259,1,'New Student','New Student','civicrm/contact/add?ct=Individual&cst=Student&reset=1','add contacts','',16,1,NULL,1),(260,1,'New Parent','New Parent','civicrm/contact/add?ct=Individual&cst=Parent&reset=1','add contacts','',16,1,NULL,2),(261,1,'New Staff','New Staff','civicrm/contact/add?ct=Individual&cst=Staff&reset=1','add contacts','',16,1,NULL,3),(262,1,'New Team','New Team','civicrm/contact/add?ct=Organization&cst=Team&reset=1','add contacts','',18,1,NULL,1),(263,1,'New Sponsor','New Sponsor','civicrm/contact/add?ct=Organization&cst=Sponsor&reset=1','add contacts','',18,1,NULL,2); +INSERT INTO `civicrm_navigation` (`id`, `domain_id`, `label`, `name`, `url`, `permission`, `permission_operator`, `parent_id`, `is_active`, `has_separator`, `weight`) VALUES (1,1,'Home','Home','civicrm/dashboard?reset=1',NULL,'',NULL,1,NULL,0),(2,1,'Search','Search...',NULL,NULL,'',NULL,1,NULL,10),(3,1,'Find Contacts','Find Contacts','civicrm/contact/search?reset=1',NULL,'',2,1,NULL,1),(4,1,'Advanced Search','Advanced Search','civicrm/contact/search/advanced?reset=1',NULL,'',2,1,NULL,2),(5,1,'Full-text Search','Full-text Search','civicrm/contact/search/custom?csid=15&reset=1',NULL,'',2,1,NULL,3),(6,1,'Search Builder','Search Builder','civicrm/contact/search/builder?reset=1',NULL,'',2,1,1,4),(7,1,'Find Cases','Find Cases','civicrm/case/search?reset=1','access my cases and activities,access all cases and activities','OR',2,1,NULL,5),(8,1,'Find Contributions','Find Contributions','civicrm/contribute/search?reset=1','access CiviContribute','',2,1,NULL,6),(9,1,'Find Mailings','Find Mailings','civicrm/mailing?reset=1','access CiviMail','',2,1,NULL,7),(10,1,'Find Memberships','Find Memberships','civicrm/member/search?reset=1','access CiviMember','',2,1,NULL,8),(11,1,'Find Participants','Find Participants','civicrm/event/search?reset=1','access CiviEvent','',2,1,NULL,9),(12,1,'Find Pledges','Find Pledges','civicrm/pledge/search?reset=1','access CiviPledge','',2,1,NULL,10),(13,1,'Find Activities','Find Activities','civicrm/activity/search?reset=1',NULL,'',2,1,1,11),(14,1,'Custom Searches','Custom Searches','civicrm/contact/search/custom/list?reset=1',NULL,'',2,1,NULL,12),(15,1,'Contacts','Contacts',NULL,NULL,'',NULL,1,NULL,20),(16,1,'New Individual','New Individual','civicrm/contact/add?reset=1&ct=Individual','add contacts','',15,1,NULL,1),(17,1,'New Household','New Household','civicrm/contact/add?reset=1&ct=Household','add contacts','',15,1,NULL,2),(18,1,'New Organization','New Organization','civicrm/contact/add?reset=1&ct=Organization','add contacts','',15,1,1,3),(19,1,'Contact Reports','Contact Reports','civicrm/report/list?compid=99&reset=1','access CiviReport','',15,1,1,4),(20,1,'New Activity','New Activity','civicrm/activity?reset=1&action=add&context=standalone',NULL,'',15,1,NULL,5),(21,1,'New Email','New Email','civicrm/activity/email/add?atype=3&action=add&reset=1&context=standalone',NULL,'',15,1,1,6),(22,1,'Import Contacts','Import Contacts','civicrm/import/contact?reset=1','import contacts','',15,1,NULL,7),(23,1,'Import Activities','Import Activities','civicrm/import/activity?reset=1','import contacts','',15,1,1,8),(24,1,'New Group','New Group','civicrm/group/add?reset=1','edit groups','',15,1,NULL,9),(25,1,'Manage Groups','Manage Groups','civicrm/group?reset=1','access CiviCRM','',15,1,1,10),(26,1,'New Tag','New Tag','civicrm/tag?reset=1&action=add','manage tags','',15,1,NULL,11),(27,1,'Manage Tags (Categories)','Manage Tags (Categories)','civicrm/tag?reset=1','manage tags','',15,1,1,12),(28,1,'Find and Merge Duplicate Contacts','Find and Merge Duplicate Contacts','civicrm/contact/deduperules?reset=1','administer dedupe rules,merge duplicate contacts','OR',15,1,NULL,13),(29,1,'Contributions','Contributions',NULL,'access CiviContribute','',NULL,1,NULL,30),(30,1,'Dashboard','Dashboard','civicrm/contribute?reset=1','access CiviContribute','',29,1,NULL,1),(31,1,'New Contribution','New Contribution','civicrm/contribute/add?reset=1&action=add&context=standalone','access CiviContribute,edit contributions','AND',29,1,NULL,2),(32,1,'Find Contributions','Find Contributions','civicrm/contribute/search?reset=1','access CiviContribute','',29,1,NULL,3),(33,1,'Contribution Reports','Contribution Reports','civicrm/report/list?compid=2&reset=1','access CiviContribute','',29,1,1,4),(34,1,'Import Contributions','Import Contributions','civicrm/contribute/import?reset=1','access CiviContribute,edit contributions','AND',29,1,1,5),(35,1,'Batch Data Entry','Batch Data Entry','civicrm/batch?reset=1','access CiviContribute','',29,1,NULL,7),(36,1,'Pledges','Pledges',NULL,'access CiviPledge','',29,1,1,6),(37,1,'Accounting Batches','Accounting Batches',NULL,'view own manual batches,view all manual batches','OR',29,1,1,8),(38,1,'Dashboard','Dashboard','civicrm/pledge?reset=1','access CiviPledge','',36,1,NULL,1),(39,1,'New Pledge','New Pledge','civicrm/pledge/add?reset=1&action=add&context=standalone','access CiviPledge,edit pledges','AND',36,1,NULL,2),(40,1,'Find Pledges','Find Pledges','civicrm/pledge/search?reset=1','access CiviPledge','',36,1,NULL,3),(41,1,'Pledge Reports','Pledge Reports','civicrm/report/list?compid=6&reset=1','access CiviPledge','',36,1,0,4),(42,1,'New Contribution Page','New Contribution Page','civicrm/admin/contribute/add?reset=1&action=add','access CiviContribute,administer CiviCRM','AND',29,1,NULL,9),(43,1,'Manage Contribution Pages','Manage Contribution Pages','civicrm/admin/contribute?reset=1','access CiviContribute,administer CiviCRM','AND',29,1,1,10),(44,1,'Personal Campaign Pages','Personal Campaign Pages','civicrm/admin/pcp?reset=1&page_type=contribute','access CiviContribute,administer CiviCRM','AND',29,1,NULL,11),(45,1,'Premiums (Thank-you Gifts)','Premiums','civicrm/admin/contribute/managePremiums?reset=1','access CiviContribute,administer CiviCRM','AND',29,1,1,12),(46,1,'New Price Set','New Price Set','civicrm/admin/price?reset=1&action=add','access CiviContribute,administer CiviCRM','AND',29,1,NULL,13),(47,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1','access CiviContribute,administer CiviCRM','AND',29,1,1,14),(48,1,'New Batch','New Batch','civicrm/financial/batch?reset=1&action=add','create manual batch','AND',37,1,NULL,1),(49,1,'Open Batches','Open Batches','civicrm/financial/financialbatches?reset=1&batchStatus=1','view own manual batches,view all manual batches','OR',37,1,NULL,2),(50,1,'Closed Batches','Closed Batches','civicrm/financial/financialbatches?reset=1&batchStatus=2','view own manual batches,view all manual batches','OR',37,1,NULL,3),(51,1,'Exported Batches','Exported Batches','civicrm/financial/financialbatches?reset=1&batchStatus=5','view own manual batches,view all manual batches','OR',37,1,NULL,4),(52,1,'Events','Events',NULL,'access CiviEvent','',NULL,1,NULL,40),(53,1,'Dashboard','CiviEvent Dashboard','civicrm/event?reset=1','access CiviEvent','',52,1,NULL,1),(54,1,'Register Event Participant','Register Event Participant','civicrm/participant/add?reset=1&action=add&context=standalone','access CiviEvent,edit event participants','AND',52,1,NULL,2),(55,1,'Find Participants','Find Participants','civicrm/event/search?reset=1','access CiviEvent','',52,1,NULL,3),(56,1,'Event Reports','Event Reports','civicrm/report/list?compid=1&reset=1','access CiviEvent','',52,1,1,4),(57,1,'Import Participants','Import Participants','civicrm/event/import?reset=1','access CiviEvent,edit event participants','AND',52,1,1,5),(58,1,'New Event','New Event','civicrm/event/add?reset=1&action=add','access CiviEvent,edit all events','AND',52,1,NULL,6),(59,1,'Manage Events','Manage Events','civicrm/event/manage?reset=1','access CiviEvent,edit all events','AND',52,1,1,7),(60,1,'Personal Campaign Pages','Personal Campaign Pages','civicrm/admin/pcp?reset=1&page_type=event','access CiviEvent,administer CiviCRM','AND',52,1,1,8),(61,1,'Event Templates','Event Templates','civicrm/admin/eventTemplate?reset=1','access CiviEvent,edit all events','AND',52,1,1,9),(62,1,'New Price Set','New Price Set','civicrm/admin/price?reset=1&action=add','access CiviEvent,edit all events','AND',52,1,NULL,10),(63,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1','access CiviEvent,edit all events','AND',52,1,NULL,11),(64,1,'Mailings','Mailings',NULL,'access CiviMail,create mailings,approve mailings,schedule mailings','OR',NULL,1,NULL,50),(65,1,'New Mailing','New Mailing','civicrm/mailing/send?reset=1','access CiviMail,create mailings','OR',64,1,NULL,1),(66,1,'Draft and Unscheduled Mailings','Draft and Unscheduled Mailings','civicrm/mailing/browse/unscheduled?reset=1&scheduled=false','access CiviMail,create mailings,schedule mailings','OR',64,1,NULL,2),(67,1,'Scheduled and Sent Mailings','Scheduled and Sent Mailings','civicrm/mailing/browse/scheduled?reset=1&scheduled=true','access CiviMail,approve mailings,create mailings,schedule mailings','OR',64,1,NULL,3),(68,1,'Archived Mailings','Archived Mailings','civicrm/mailing/browse/archived?reset=1','access CiviMail,create mailings','OR',64,1,NULL,4),(69,1,'Mailing Reports','Mailing Reports','civicrm/report/list?compid=4&reset=1','access CiviMail','',64,1,1,5),(70,1,'Headers, Footers, and Automated Messages','Headers, Footers, and Automated Messages','civicrm/admin/component?reset=1','access CiviMail,administer CiviCRM','AND',64,1,NULL,6),(71,1,'Message Templates','Message Templates','civicrm/admin/messageTemplates?reset=1','edit message templates','',64,1,NULL,7),(72,1,'From Email Addresses','From Email Addresses','civicrm/admin/options/from_email_address?reset=1','administer CiviCRM','',64,1,1,8),(73,1,'New SMS','New SMS','civicrm/sms/send?reset=1','administer CiviCRM',NULL,64,1,NULL,9),(74,1,'Find Mass SMS','Find Mass SMS','civicrm/mailing/browse?reset=1&sms=1','administer CiviCRM',NULL,64,1,1,10),(75,1,'New A/B Test','New A/B Test','civicrm/a/#/abtest/new','access CiviMail','',64,1,NULL,15),(76,1,'Manage A/B Tests','Manage A/B Tests','civicrm/a/#/abtest','access CiviMail','',64,1,1,16),(77,1,'Memberships','Memberships',NULL,'access CiviMember','',NULL,1,NULL,60),(78,1,'Dashboard','Dashboard','civicrm/member?reset=1','access CiviMember','',77,1,NULL,1),(79,1,'New Membership','New Membership','civicrm/member/add?reset=1&action=add&context=standalone','access CiviMember,edit memberships','AND',77,1,NULL,2),(80,1,'Find Memberships','Find Memberships','civicrm/member/search?reset=1','access CiviMember','',77,1,NULL,3),(81,1,'Membership Reports','Membership Reports','civicrm/report/list?compid=3&reset=1','access CiviMember','',77,1,1,4),(82,1,'Batch Data Entry','Batch Data Entry','civicrm/batch?reset=1','access CiviContribute','',77,1,NULL,5),(83,1,'Import Memberships','Import Members','civicrm/member/import?reset=1','access CiviMember,edit memberships','AND',77,1,1,6),(84,1,'New Price Set','New Price Set','civicrm/admin/price?reset=1&action=add','access CiviMember,administer CiviCRM','AND',77,1,NULL,7),(85,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1','access CiviMember,administer CiviCRM','AND',77,1,NULL,8),(86,1,'Campaigns','Campaigns',NULL,'interview campaign contacts,release campaign contacts,reserve campaign contacts,manage campaign,administer CiviCampaign,gotv campaign contacts','OR',NULL,1,NULL,70),(87,1,'Dashboard','Dashboard','civicrm/campaign?reset=1','manage campaign,administer CiviCampaign','OR',86,1,NULL,1),(88,1,'Surveys','Survey Dashboard','civicrm/campaign?reset=1&subPage=survey','manage campaign,administer CiviCampaign','OR',87,1,NULL,1),(89,1,'Petitions','Petition Dashboard','civicrm/campaign?reset=1&subPage=petition','manage campaign,administer CiviCampaign','OR',87,1,NULL,2),(90,1,'Campaigns','Campaign Dashboard','civicrm/campaign?reset=1&subPage=campaign','manage campaign,administer CiviCampaign','OR',87,1,NULL,3),(91,1,'New Campaign','New Campaign','civicrm/campaign/add?reset=1','manage campaign,administer CiviCampaign','OR',86,1,NULL,2),(92,1,'New Survey','New Survey','civicrm/survey/add?reset=1','manage campaign,administer CiviCampaign','OR',86,1,NULL,3),(93,1,'New Petition','New Petition','civicrm/petition/add?reset=1','manage campaign,administer CiviCampaign','OR',86,1,NULL,4),(94,1,'Reserve Respondents','Reserve Respondents','civicrm/survey/search?reset=1&op=reserve','administer CiviCampaign,manage campaign,reserve campaign contacts','OR',86,1,NULL,5),(95,1,'Interview Respondents','Interview Respondents','civicrm/survey/search?reset=1&op=interview','administer CiviCampaign,manage campaign,interview campaign contacts','OR',86,1,NULL,6),(96,1,'Release Respondents','Release Respondents','civicrm/survey/search?reset=1&op=release','administer CiviCampaign,manage campaign,release campaign contacts','OR',86,1,NULL,7),(97,1,'Campaign Reports','Campaign Reports','civicrm/report/list?compid=9&reset=1','interview campaign contacts,release campaign contacts,reserve campaign contacts,manage campaign,administer CiviCampaign,gotv campaign contacts','OR',86,1,1,8),(98,1,'Conduct Survey','Conduct Survey','civicrm/campaign/vote?reset=1','administer CiviCampaign,manage campaign,reserve campaign contacts,interview campaign contacts','OR',86,1,NULL,9),(99,1,'GOTV (Voter Tracking)','Voter Listing','civicrm/campaign/gotv?reset=1','administer CiviCampaign,manage campaign,release campaign contacts,gotv campaign contacts','OR',86,1,NULL,10),(100,1,'Cases','Cases',NULL,'access my cases and activities,access all cases and activities','OR',NULL,1,NULL,80),(101,1,'Dashboard','Dashboard','civicrm/case?reset=1','access my cases and activities,access all cases and activities','OR',100,1,NULL,1),(102,1,'New Case','New Case','civicrm/case/add?reset=1&action=add&atype=13&context=standalone','add cases,access all cases and activities','OR',100,1,NULL,2),(103,1,'Find Cases','Find Cases','civicrm/case/search?reset=1','access my cases and activities,access all cases and activities','OR',100,1,1,3),(104,1,'Case Reports','Case Reports','civicrm/report/list?compid=7&reset=1','access my cases and activities,access all cases and activities,administer CiviCase','OR',100,1,0,4),(105,1,'Grants','Grants',NULL,'access CiviGrant','',NULL,1,NULL,90),(106,1,'Dashboard','Dashboard','civicrm/grant?reset=1','access CiviGrant','',105,1,NULL,1),(107,1,'New Grant','New Grant','civicrm/grant/add?reset=1&action=add&context=standalone','access CiviGrant,edit grants','AND',105,1,NULL,2),(108,1,'Find Grants','Find Grants','civicrm/grant/search?reset=1','access CiviGrant','',105,1,1,3),(109,1,'Grant Reports','Grant Reports','civicrm/report/list?compid=5&reset=1','access CiviGrant','',105,1,0,4),(110,1,'Administer','Administer',NULL,'administer CiviCRM','',NULL,1,NULL,100),(111,1,'Administration Console','Administration Console','civicrm/admin?reset=1','administer CiviCRM','',110,1,NULL,1),(112,1,'System Status','System Status','civicrm/a/#/status','administer CiviCRM','',111,1,NULL,0),(113,1,'Configuration Checklist','Configuration Checklist','civicrm/admin/configtask?reset=1','administer CiviCRM','',111,1,NULL,1),(114,1,'Customize Data and Screens','Customize Data and Screens',NULL,'administer CiviCRM','',110,1,NULL,3),(115,1,'Custom Fields','Custom Fields','civicrm/admin/custom/group?reset=1','administer CiviCRM','',114,1,NULL,1),(116,1,'Profiles','Profiles','civicrm/admin/uf/group?reset=1','administer CiviCRM','',114,1,NULL,2),(117,1,'Tags (Categories)','Tags (Categories)','civicrm/tag?reset=1','administer CiviCRM','',114,1,NULL,3),(118,1,'Activity Types','Activity Types','civicrm/admin/options/activity_type?reset=1','administer CiviCRM','',114,1,NULL,4),(119,1,'Relationship Types','Relationship Types','civicrm/admin/reltype?reset=1','administer CiviCRM','',114,1,NULL,5),(120,1,'Contact Types','Contact Types','civicrm/admin/options/subtype?reset=1','administer CiviCRM','',114,1,NULL,6),(121,1,'Display Preferences','Display Preferences','civicrm/admin/setting/preferences/display?reset=1','administer CiviCRM','',114,1,NULL,9),(122,1,'Search Preferences','Search Preferences','civicrm/admin/setting/search?reset=1','administer CiviCRM','',114,1,NULL,10),(123,1,'Date Preferences','Date Preferences','civicrm/admin/setting/preferences/date?reset=1','administer CiviCRM','',114,1,NULL,11),(124,1,'Navigation Menu','Navigation Menu','civicrm/admin/menu?reset=1','administer CiviCRM','',114,1,NULL,12),(125,1,'Word Replacements','Word Replacements','civicrm/admin/options/wordreplacements?reset=1','administer CiviCRM','',114,1,NULL,13),(126,1,'Manage Custom Searches','Manage Custom Searches','civicrm/admin/options/custom_search?reset=1','administer CiviCRM','',114,1,NULL,14),(127,1,'Dropdown Options','Dropdown Options',NULL,'administer CiviCRM','',114,1,NULL,8),(128,1,'Gender Options','Gender Options','civicrm/admin/options/gender?reset=1','administer CiviCRM','',127,1,NULL,1),(129,1,'Individual Prefixes (Ms, Mr...)','Individual Prefixes (Ms, Mr...)','civicrm/admin/options/individual_prefix?reset=1','administer CiviCRM','',127,1,NULL,2),(130,1,'Individual Suffixes (Jr, Sr...)','Individual Suffixes (Jr, Sr...)','civicrm/admin/options/individual_suffix?reset=1','administer CiviCRM','',127,1,NULL,3),(131,1,'Instant Messenger Services','Instant Messenger Services','civicrm/admin/options/instant_messenger_service?reset=1','administer CiviCRM','',127,1,NULL,4),(132,1,'Location Types (Home, Work...)','Location Types (Home, Work...)','civicrm/admin/locationType?reset=1','administer CiviCRM','',127,1,NULL,5),(133,1,'Mobile Phone Providers','Mobile Phone Providers','civicrm/admin/options/mobile_provider?reset=1','administer CiviCRM','',127,1,NULL,6),(134,1,'Phone Types','Phone Types','civicrm/admin/options/phone_type?reset=1','administer CiviCRM','',127,1,NULL,7),(135,1,'Website Types','Website Types','civicrm/admin/options/website_type?reset=1','administer CiviCRM','',127,1,NULL,8),(136,1,'Communications','Communications',NULL,'administer CiviCRM','',110,1,NULL,4),(137,1,'Organization Address and Contact Info','Organization Address and Contact Info','civicrm/admin/domain?action=update&reset=1','administer CiviCRM','',136,1,NULL,1),(138,1,'FROM Email Addresses','FROM Email Addresses','civicrm/admin/options/from_email_address?reset=1','administer CiviCRM','',136,1,NULL,2),(139,1,'Message Templates','Message Templates','civicrm/admin/messageTemplates?reset=1','administer CiviCRM','',136,1,NULL,3),(140,1,'Schedule Reminders','Schedule Reminders','civicrm/admin/scheduleReminders?reset=1','administer CiviCRM','',136,1,NULL,4),(141,1,'Preferred Communication Methods','Preferred Communication Methods','civicrm/admin/options/preferred_communication_method?reset=1','administer CiviCRM','',136,1,NULL,5),(142,1,'Label Formats','Label Formats','civicrm/admin/labelFormats?reset=1','administer CiviCRM','',136,1,NULL,6),(143,1,'Print Page (PDF) Formats','Print Page (PDF) Formats','civicrm/admin/pdfFormats?reset=1','administer CiviCRM','',136,1,NULL,7),(144,1,'Communication Style Options','Communication Style Options','civicrm/admin/options/communication_style?reset=1','administer CiviCRM','',136,1,NULL,8),(145,1,'Email Greeting Formats','Email Greeting Formats','civicrm/admin/options/email_greeting?reset=1','administer CiviCRM','',136,1,NULL,9),(146,1,'Postal Greeting Formats','Postal Greeting Formats','civicrm/admin/options/postal_greeting?reset=1','administer CiviCRM','',136,1,NULL,10),(147,1,'Addressee Formats','Addressee Formats','civicrm/admin/options/addressee?reset=1','administer CiviCRM','',136,1,NULL,11),(148,1,'Localization','Localization',NULL,'administer CiviCRM','',110,1,NULL,6),(149,1,'Languages, Currency, Locations','Languages, Currency, Locations','civicrm/admin/setting/localization?reset=1','administer CiviCRM','',148,1,NULL,1),(150,1,'Address Settings','Address Settings','civicrm/admin/setting/preferences/address?reset=1','administer CiviCRM','',148,1,NULL,2),(151,1,'Date Formats','Date Formats','civicrm/admin/setting/date?reset=1','administer CiviCRM','',148,1,NULL,3),(152,1,'Preferred Language Options','Preferred Language Options','civicrm/admin/options/languages?reset=1','administer CiviCRM','',148,1,NULL,4),(153,1,'Users and Permissions','Users and Permissions',NULL,'administer CiviCRM','',110,1,NULL,7),(154,1,'Permissions (Access Control)','Permissions (Access Control)','civicrm/admin/access?reset=1','administer CiviCRM','',153,1,NULL,1),(155,1,'Synchronize Users to Contacts','Synchronize Users to Contacts','civicrm/admin/synchUser?reset=1','administer CiviCRM','',153,1,NULL,2),(156,1,'System Settings','System Settings',NULL,'administer CiviCRM','',110,1,NULL,8),(157,1,'Components','Enable Components','civicrm/admin/setting/component?reset=1','administer CiviCRM','',156,1,NULL,1),(158,1,'Connections','Connections','civicrm/a/#/cxn','administer CiviCRM','',156,1,NULL,2),(159,1,'Extensions','Manage Extensions','civicrm/admin/extensions?reset=1','administer CiviCRM','',156,1,1,3),(160,1,'Cleanup Caches and Update Paths','Cleanup Caches and Update Paths','civicrm/admin/setting/updateConfigBackend?reset=1','administer CiviCRM','',156,1,NULL,4),(161,1,'CMS Database Integration','CMS Integration','civicrm/admin/setting/uf?reset=1','administer CiviCRM','',156,1,NULL,5),(162,1,'Debugging and Error Handling','Debugging and Error Handling','civicrm/admin/setting/debug?reset=1','administer CiviCRM','',156,1,NULL,6),(163,1,'Directories','Directories','civicrm/admin/setting/path?reset=1','administer CiviCRM','',156,1,NULL,7),(164,1,'Import/Export Mappings','Import/Export Mappings','civicrm/admin/mapping?reset=1','administer CiviCRM','',156,1,NULL,8),(165,1,'Mapping and Geocoding','Mapping and Geocoding','civicrm/admin/setting/mapping?reset=1','administer CiviCRM','',156,1,NULL,9),(166,1,'Misc (Undelete, PDFs, Limits, Logging, Captcha, etc.)','Misc (Undelete, PDFs, Limits, Logging, Captcha, etc.)','civicrm/admin/setting/misc?reset=1','administer CiviCRM','',156,1,NULL,10),(167,1,'Multi Site Settings','Multi Site Settings','civicrm/admin/setting/preferences/multisite?reset=1','administer CiviCRM','',156,1,NULL,11),(168,1,'Option Groups','Option Groups','civicrm/admin/options?reset=1','administer CiviCRM','',156,1,NULL,12),(169,1,'Outbound Email (SMTP/Sendmail)','Outbound Email','civicrm/admin/setting/smtp?reset=1','administer CiviCRM','',156,1,NULL,13),(170,1,'Payment Processors','Payment Processors','civicrm/admin/paymentProcessor?reset=1','administer CiviCRM','',156,1,NULL,14),(171,1,'Resource URLs','Resource URLs','civicrm/admin/setting/url?reset=1','administer CiviCRM','',156,1,NULL,15),(172,1,'Safe File Extensions','Safe File Extensions','civicrm/admin/options/safe_file_extension?reset=1','administer CiviCRM','',156,1,NULL,16),(173,1,'Scheduled Jobs','Scheduled Jobs','civicrm/admin/job?reset=1','administer CiviCRM','',156,1,NULL,17),(174,1,'SMS Providers','SMS Providers','civicrm/admin/sms/provider?reset=1','administer CiviCRM','',156,1,NULL,18),(175,1,'CiviCampaign','CiviCampaign',NULL,'administer CiviCampaign,administer CiviCRM','AND',110,1,NULL,9),(176,1,'Survey Types','Survey Types','civicrm/admin/campaign/surveyType?reset=1','administer CiviCampaign','',175,1,NULL,1),(177,1,'Campaign Types','Campaign Types','civicrm/admin/options/campaign_type?reset=1','administer CiviCampaign','',175,1,NULL,2),(178,1,'Campaign Status','Campaign Status','civicrm/admin/options/campaign_status?reset=1','administer CiviCampaign','',175,1,NULL,3),(179,1,'Engagement Index','Engagement Index','civicrm/admin/options/engagement_index?reset=1','administer CiviCampaign','',175,1,NULL,4),(180,1,'CiviCampaign Component Settings','CiviCampaign Component Settings','civicrm/admin/setting/preferences/campaign?reset=1','administer CiviCampaign','',175,1,NULL,5),(181,1,'CiviCase','CiviCase',NULL,'administer CiviCase',NULL,110,1,NULL,10),(182,1,'Case Types','Case Types','civicrm/a/#/caseType','administer CiviCase',NULL,181,1,NULL,1),(183,1,'Redaction Rules','Redaction Rules','civicrm/admin/options/redaction_rule?reset=1','administer CiviCase',NULL,181,1,NULL,2),(184,1,'Case Statuses','Case Statuses','civicrm/admin/options/case_status?reset=1','administer CiviCase',NULL,181,1,NULL,3),(185,1,'Encounter Medium','Encounter Medium','civicrm/admin/options/encounter_medium?reset=1','administer CiviCase',NULL,181,1,NULL,4),(186,1,'CiviContribute','CiviContribute',NULL,'access CiviContribute,administer CiviCRM','AND',110,1,NULL,11),(187,1,'New Contribution Page','New Contribution Page','civicrm/admin/contribute?reset=1&action=add','access CiviContribute,administer CiviCRM','AND',186,1,NULL,6),(188,1,'Manage Contribution Pages','Manage Contribution Pages','civicrm/admin/contribute?reset=1','access CiviContribute,administer CiviCRM','AND',186,1,1,7),(189,1,'Personal Campaign Pages','Personal Campaign Pages','civicrm/admin/pcp?reset=1&page_type=contribute','access CiviContribute,administer CiviCRM','AND',186,1,NULL,8),(190,1,'Premiums (Thank-you Gifts)','Premiums','civicrm/admin/contribute/managePremiums?reset=1','access CiviContribute,administer CiviCRM','AND',186,1,1,9),(191,1,'Financial Types','Financial Types','civicrm/admin/financial/financialType?reset=1','access CiviContribute,administer CiviCRM','AND',186,1,NULL,10),(192,1,'Financial Accounts','Financial Accounts','civicrm/admin/financial/financialAccount?reset=1','access CiviContribute,administer CiviCRM','AND',186,1,NULL,11),(193,1,'Payment Methods','Payment Instruments','civicrm/admin/options/payment_instrument?reset=1','access CiviContribute,administer CiviCRM','AND',186,1,NULL,12),(194,1,'Accepted Credit Cards','Accepted Credit Cards','civicrm/admin/options/accept_creditcard?reset=1','access CiviContribute,administer CiviCRM','AND',186,1,NULL,13),(195,1,'Soft Credit Types','Soft Credit Types','civicrm/admin/options/soft_credit_type?reset=1','access CiviContribute,administer CiviCRM','AND',186,1,1,14),(196,1,'New Price Set','New Price Set','civicrm/admin/price?reset=1&action=add','access CiviContribute,administer CiviCRM','AND',186,1,NULL,15),(197,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1','access CiviContribute,administer CiviCRM','AND',186,1,NULL,16),(198,1,'Payment Processors','Payment Processors','civicrm/admin/paymentProcessor?reset=1','administer CiviCRM','',186,1,NULL,17),(199,1,'CiviContribute Component Settings','CiviContribute Component Settings','civicrm/admin/setting/preferences/contribute?reset=1','administer CiviCRM','',186,1,NULL,18),(200,1,'CiviEvent','CiviEvent',NULL,'access CiviEvent,administer CiviCRM','AND',110,1,NULL,12),(201,1,'New Event','New Event','civicrm/event/add?reset=1&action=add','access CiviEvent,administer CiviCRM','AND',200,1,NULL,1),(202,1,'Manage Events','Manage Events','civicrm/event/manage?reset=1','access CiviEvent,administer CiviCRM','AND',200,1,1,2),(203,1,'Personal Campaign Pages','Personal Campaign Pages','civicrm/admin/pcp?reset=1&page_type=event','access CiviEvent,administer CiviCRM','AND',200,1,1,3),(204,1,'Event Templates','Event Templates','civicrm/admin/eventTemplate?reset=1','access CiviEvent,administer CiviCRM','AND',200,1,1,4),(205,1,'New Price Set','New Price Set','civicrm/admin/price?reset=1&action=add','access CiviEvent,administer CiviCRM','AND',200,1,NULL,5),(206,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1','access CiviEvent,administer CiviCRM','AND',200,1,1,6),(207,1,'Event Types','Event Types','civicrm/admin/options/event_type?reset=1','access CiviEvent,administer CiviCRM','AND',200,1,NULL,7),(208,1,'Participant Statuses','Participant Statuses','civicrm/admin/participant_status?reset=1','access CiviEvent,administer CiviCRM','AND',200,1,NULL,8),(209,1,'Participant Roles','Participant Roles','civicrm/admin/options/participant_role?reset=1','access CiviEvent,administer CiviCRM','AND',200,1,NULL,9),(210,1,'Participant Listing Options','Participant Listing Options','civicrm/admin/options/participant_listing?reset=1','access CiviEvent,administer CiviCRM','AND',200,1,NULL,10),(211,1,'Event Name Badge Layouts','Event Name Badge Layouts','civicrm/admin/badgelayout?reset=1','access CiviEvent,administer CiviCRM','AND',200,1,NULL,11),(212,1,'Payment Processors','Payment Processors','civicrm/admin/paymentProcessor?reset=1','administer CiviCRM','',200,1,NULL,12),(213,1,'CiviEvent Component Settings','CiviEvent Component Settings','civicrm/admin/setting/preferences/event?reset=1','access CiviEvent,administer CiviCRM','AND',200,1,NULL,13),(214,1,'CiviGrant','CiviGrant',NULL,'access CiviGrant,administer CiviCRM','AND',110,1,NULL,13),(215,1,'Grant Types','Grant Types','civicrm/admin/options/grant_type?reset=1','access CiviGrant,administer CiviCRM','AND',214,1,NULL,1),(216,1,'Grant Status','Grant Status','civicrm/admin/options/grant_status?reset=1','access CiviGrant,administer CiviCRM','AND',214,1,NULL,2),(217,1,'CiviMail','CiviMail',NULL,'access CiviMail,administer CiviCRM','AND',110,1,NULL,14),(218,1,'Headers, Footers, and Automated Messages','Headers, Footers, and Automated Messages','civicrm/admin/component?reset=1','access CiviMail,administer CiviCRM','AND',217,1,NULL,1),(219,1,'Message Templates','Message Templates','civicrm/admin/messageTemplates?reset=1','administer CiviCRM','',217,1,NULL,2),(220,1,'From Email Addresses','From Email Addresses','civicrm/admin/options/from_email_address?reset=1','administer CiviCRM','',217,1,NULL,3),(221,1,'Mail Accounts','Mail Accounts','civicrm/admin/mailSettings?reset=1','access CiviMail,administer CiviCRM','AND',217,1,NULL,4),(222,1,'Mailer Settings','Mailer Settings','civicrm/admin/mail?reset=1','access CiviMail,administer CiviCRM','AND',217,1,NULL,5),(223,1,'CiviMail Component Settings','CiviMail Component Settings','civicrm/admin/setting/preferences/mailing?reset=1','access CiviMail,administer CiviCRM','AND',217,1,NULL,6),(224,1,'CiviMember','CiviMember',NULL,'access CiviMember,administer CiviCRM','AND',110,1,NULL,15),(225,1,'Membership Types','Membership Types','civicrm/admin/member/membershipType?reset=1','access CiviMember,administer CiviCRM','AND',224,1,NULL,1),(226,1,'Membership Status Rules','Membership Status Rules','civicrm/admin/member/membershipStatus?reset=1','access CiviMember,administer CiviCRM','AND',224,1,1,2),(227,1,'New Price Set','New Price Set','civicrm/admin/price?reset=1&action=add','access CiviMember,administer CiviCRM','AND',224,1,NULL,3),(228,1,'Manage Price Sets','Manage Price Sets','civicrm/admin/price?reset=1','access CiviMember,administer CiviCRM','AND',224,1,NULL,4),(229,1,'CiviMember Component Settings','CiviMember Component Settings','civicrm/admin/setting/preferences/member?reset=1','access CiviMember,administer CiviCRM','AND',224,1,NULL,5),(230,1,'CiviReport','CiviReport',NULL,'access CiviReport,administer CiviCRM','AND',110,1,NULL,16),(231,1,'All Reports','All Reports','civicrm/report/list?reset=1','access CiviReport','',230,1,NULL,1),(232,1,'Create New Report from Template','Create New Report from Template','civicrm/admin/report/template/list?reset=1','administer Reports','',230,1,NULL,2),(233,1,'Manage Templates','Manage Templates','civicrm/admin/report/options/report_template?reset=1','administer Reports','',230,1,NULL,3),(234,1,'Register Report','Register Report','civicrm/admin/report/register?reset=1','administer Reports','',230,1,NULL,4),(235,1,'Support','Support',NULL,NULL,'',NULL,1,NULL,110),(236,1,'Get started','Get started','https://civicrm.org/get-started?src=iam',NULL,'AND',235,1,NULL,1),(237,1,'Documentation','Documentation','https://civicrm.org/documentation?src=iam',NULL,'AND',235,1,NULL,2),(238,1,'Ask a question','Ask a question','https://civicrm.org/ask-a-question?src=iam',NULL,'AND',235,1,NULL,3),(239,1,'Get expert help','Get expert help','https://civicrm.org/experts?src=iam',NULL,'AND',235,1,NULL,4),(240,1,'About CiviCRM','About CiviCRM','https://civicrm.org/about?src=iam',NULL,'AND',235,1,1,5),(241,1,'Register your site','Register your site','https://civicrm.org/register-your-site?src=iam&sid={sid}',NULL,'AND',235,1,NULL,6),(242,1,'Join CiviCRM','Join CiviCRM','https://civicrm.org/become-a-member?src=iam&sid={sid}',NULL,'AND',235,1,NULL,7),(243,1,'Developer','Developer',NULL,'administer CiviCRM','',235,1,1,8),(244,1,'API Explorer','API Explorer','civicrm/api','administer CiviCRM','',243,1,NULL,1),(245,1,'Developer Docs','Developer Docs','https://civicrm.org/developer-documentation?src=iam','administer CiviCRM','',243,1,NULL,3),(246,1,'Reports','Reports',NULL,'access CiviReport','',NULL,1,NULL,95),(247,1,'Contact Reports','Contact Reports','civicrm/report/list?compid=99&reset=1','administer CiviCRM','',246,1,0,1),(248,1,'Contribution Reports','Contribution Reports','civicrm/report/list?compid=2&reset=1','access CiviContribute','',246,1,0,2),(249,1,'Pledge Reports','Pledge Reports','civicrm/report/list?compid=6&reset=1','access CiviPledge','',246,1,0,3),(250,1,'Event Reports','Event Reports','civicrm/report/list?compid=1&reset=1','access CiviEvent','',246,1,0,4),(251,1,'Mailing Reports','Mailing Reports','civicrm/report/list?compid=4&reset=1','access CiviMail','',246,1,0,5),(252,1,'Membership Reports','Membership Reports','civicrm/report/list?compid=3&reset=1','access CiviMember','',246,1,0,6),(253,1,'Campaign Reports','Campaign Reports','civicrm/report/list?compid=9&reset=1','interview campaign contacts,release campaign contacts,reserve campaign contacts,manage campaign,administer CiviCampaign,gotv campaign contacts','OR',246,1,0,7),(254,1,'Case Reports','Case Reports','civicrm/report/list?compid=7&reset=1','access my cases and activities,access all cases and activities,administer CiviCase','OR',246,1,0,8),(255,1,'Grant Reports','Grant Reports','civicrm/report/list?compid=5&reset=1','access CiviGrant','',246,1,0,9),(256,1,'All Reports','All Reports','civicrm/report/list?reset=1','access CiviReport','',246,1,1,10),(257,1,'My Reports','My Reports','civicrm/report/list?myreports=1&reset=1','access CiviReport','',246,1,1,11),(258,1,'New Student','New Student','civicrm/contact/add?ct=Individual&cst=Student&reset=1','add contacts','',16,1,NULL,1),(259,1,'New Parent','New Parent','civicrm/contact/add?ct=Individual&cst=Parent&reset=1','add contacts','',16,1,NULL,2),(260,1,'New Staff','New Staff','civicrm/contact/add?ct=Individual&cst=Staff&reset=1','add contacts','',16,1,NULL,3),(261,1,'New Team','New Team','civicrm/contact/add?ct=Organization&cst=Team&reset=1','add contacts','',18,1,NULL,1),(262,1,'New Sponsor','New Sponsor','civicrm/contact/add?ct=Organization&cst=Sponsor&reset=1','add contacts','',18,1,NULL,2); /*!40000 ALTER TABLE `civicrm_navigation` ENABLE KEYS */; UNLOCK TABLES; diff --git a/templates/CRM/Contribute/Form/CloseAccPeriod.tpl b/templates/CRM/Contribute/Form/CloseAccPeriod.tpl deleted file mode 100644 index 4624d68d5b69..000000000000 --- a/templates/CRM/Contribute/Form/CloseAccPeriod.tpl +++ /dev/null @@ -1,34 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | CiviCRM version 4.7 | - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2017 | - +--------------------------------------------------------------------+ - | This file is a part of CiviCRM. | - | | - | CiviCRM is free software; you can copy, modify, and distribute it | - | under the terms of the GNU Affero General Public License | - | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | - | | - | CiviCRM is distributed in the hope that it will be useful, but | - | WITHOUT ANY WARRANTY; without even the implied warranty of | - | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | - | See the GNU Affero General Public License for more details. | - | | - | You should have received a copy of the GNU Affero General Public | - | License and the CiviCRM Licensing Exception along | - | with this program; if not, contact CiviCRM LLC | - | at info[AT]civicrm[DOT]org. If you have questions about the | - | GNU Affero General Public License or the licensing of CiviCRM, | - | see the CiviCRM license FAQ at http://civicrm.org/licensing | - +--------------------------------------------------------------------+ -*} - - - - - - -
{$form.closing_date.label}{$form.closing_date.html}
- -
{include file="CRM/common/formButtons.tpl" location="bottom"}
\ No newline at end of file diff --git a/tests/phpunit/WebTest/Contribute/AccrualSettingTest.php b/tests/phpunit/WebTest/Contribute/AccrualSettingTest.php deleted file mode 100644 index c82b15776059..000000000000 --- a/tests/phpunit/WebTest/Contribute/AccrualSettingTest.php +++ /dev/null @@ -1,86 +0,0 @@ -webtestLogin(); - $this->openCiviPage("admin/setting/preferences/contribute", "reset=1"); - $this->waitForElementPresent("_qf_Contribute_next"); - - // Check hide/show - $this->click("deferred_revenue_enabled"); - $this->waitForElementPresent("xpath=//tr[@class='crm-preferences-form-block-default_invoice_page'][@style='display: table-row;']"); - $this->click("deferred_revenue_enabled"); - $this->waitForElementPresent("xpath=//tr[@class='crm-preferences-form-block-default_invoice_page'][@style='display: none;']"); - - // a random 7-char string and an even number to make this pass unique - $hash = substr(sha1(rand()), 0, 7); - $rand = 2 * rand(2, 50); - $pageTitle = 'Test Contribution Page ' . $hash; - // create contribution page with randomized title and default params - $pageId = $this->webtestAddContributionPage($hash, $rand, $pageTitle, array('Test Processor' => 'Dummy'), FALSE, FALSE, FALSE, FALSE, - FALSE, FALSE, NULL, FALSE, 1, 7, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, 'Donation', TRUE, FALSE); - - // Input value - $this->openCiviPage("admin/setting/preferences/contribute", "reset=1"); - $this->waitForElementPresent("_qf_Contribute_next"); - $this->click("deferred_revenue_enabled"); - $this->waitForElementPresent("xpath=//*[@id='default_invoice_page']"); - - $this->select('default_invoice_page', "value={$pageId}"); - - // Check hide/show - $this->click("financial_account_bal_enable"); - $this->waitForElementPresent("xpath=//tr[@class='crm-preferences-form-block-fiscalYearStart'][@style='display: table-row;']"); - $this->click("financial_account_bal_enable"); - $this->waitForElementPresent("xpath=//tr[@class='crm-preferences-form-block-fiscalYearStart'][@style='display: none;']"); - - $this->click("financial_account_bal_enable"); - $this->waitForElementPresent("xpath=//*[@id='fiscalYearStart_M']"); - $this->select('fiscalYearStart_M', "value=4"); - $this->select('fiscalYearStart_d', "value=30"); - - $this->webtestFillDate('period_closing_date', 'now+2'); - $this->click('_qf_Contribute_next'); - $this->waitForPageToLoad($this->getTimeoutMsec()); - - //does data saved. - $this->assertTrue($this->isTextPresent('Changes saved.'), - "Status message didn't show up after saving!" - ); - } - -} diff --git a/xml/templates/civicrm_navigation.tpl b/xml/templates/civicrm_navigation.tpl index 30c8565230e9..c35a5448ab66 100644 --- a/xml/templates/civicrm_navigation.tpl +++ b/xml/templates/civicrm_navigation.tpl @@ -157,7 +157,6 @@ VALUES ( @domainID, 'civicrm/admin/contribute/managePremiums?reset=1', '{ts escape="sql" skip="true"}Premiums (Thank-you Gifts){/ts}', 'Premiums', 'access CiviContribute,administer CiviCRM', 'AND', @contributionlastID, '1', 1, 12 ), ( @domainID, 'civicrm/admin/price?reset=1&action=add', '{ts escape="sql" skip="true"}New Price Set{/ts}', 'New Price Set', 'access CiviContribute,administer CiviCRM', 'AND', @contributionlastID, '1', NULL, 13 ), ( @domainID, 'civicrm/admin/price?reset=1', '{ts escape="sql" skip="true"}Manage Price Sets{/ts}', 'Manage Price Sets', 'access CiviContribute,administer CiviCRM', 'AND', @contributionlastID, '1', 1, 14 ), - ( @domainID, 'civicrm/admin/contribute/closeaccperiod?reset=1', '{ts escape="sql" skip="true"}Close Accounting Period{/ts}', 'Close Accounting Period', 'access CiviContribute,administer CiviCRM,administer Accounting', 'AND', @contributionlastID, '1', NULL, 15 ), ( @domainID, 'civicrm/financial/batch?reset=1&action=add', '{ts escape="sql" skip="true"}New Batch{/ts}', 'New Batch', 'create manual batch', 'AND', @financialTransactionID, '1', NULL, 1 ), ( @domainID, 'civicrm/financial/financialbatches?reset=1&batchStatus=1', '{ts escape="sql" skip="true"}Open Batches{/ts}', 'Open Batches', 'view own manual batches,view all manual batches', 'OR', @financialTransactionID, '1', NULL, 2 ),