1<?php
2/**********************************************************************
3    Copyright (C) FrontAccounting, LLC.
4	Released under the terms of the GNU General Public License, GPL,
5	as published by the Free Software Foundation, either version 3
6	of the License, or (at your option) any later version.
7    This program is distributed in the hope that it will be useful,
8    but WITHOUT ANY WARRANTY; without even the implied warranty of
9    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
11***********************************************************************/
12class dimensions_app extends application
13{
14	function dimensions_app()
15	{
16		$dim = get_company_pref('use_dimension');
17		$this->application("proj", _($this->help_context = "&Dimensions"), $dim);
18
19		if ($dim > 0)
20		{
21			$this->add_module(_("Transactions"));
22			$this->add_lapp_function(0, _("Dimension &Entry"),
23				"dimensions/dimension_entry.php?", 'SA_DIMENSION', MENU_ENTRY);
24			$this->add_lapp_function(0, _("&Outstanding Dimensions"),
25				"dimensions/inquiry/search_dimensions.php?outstanding_only=1", 'SA_DIMTRANSVIEW', MENU_TRANSACTION);
26
27			$this->add_module(_("Inquiries and Reports"));
28			$this->add_lapp_function(1, _("Dimension &Inquiry"),
29				"dimensions/inquiry/search_dimensions.php?", 'SA_DIMTRANSVIEW', MENU_INQUIRY);
30
31			$this->add_rapp_function(1, _("Dimension &Reports"),
32				"reporting/reports_main.php?Class=4", 'SA_DIMENSIONREP', MENU_REPORT);
33
34			$this->add_module(_("Maintenance"));
35			$this->add_lapp_function(2, _("Dimension &Tags"),
36				"admin/tags.php?type=dimension", 'SA_DIMTAGS', MENU_MAINTENANCE);
37
38			$this->add_extensions();
39		}
40	}
41}
42
43?>