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 ***********************************************************************/
12 class general_ledger_app extends application
14 function general_ledger_app()
16 global $installed_extensions;
17 $this->application("GL",_("&Banking and General Ledger"));
19 $this->add_module(_("Transactions"));
20 $this->add_lapp_function(0, _("&Payments"),"gl/gl_bank.php?NewPayment=Yes");
21 $this->add_lapp_function(0, _("&Deposits"),"gl/gl_bank.php?NewDeposit=Yes");
22 $this->add_lapp_function(0, _("Bank Account &Transfers"),"gl/bank_transfer.php?");
23 $this->add_rapp_function(0, _("&Journal Entry"),"gl/gl_journal.php?NewJournal=Yes");
24 $this->add_rapp_function(0, _("&Budget Entry"),"gl/gl_budget.php?");
25 $this->add_rapp_function(0, _("&Reconcile Bank Account"),"gl/bank_account_reconcile.php?");
26 $this->add_module(_("Inquiries and Reports"));
27 $this->add_lapp_function(1, _("&Journal Inquiry"),"gl/inquiry/journal_inquiry.php?");
28 $this->add_lapp_function(1, _("GL Account &Inquiry"),"gl/inquiry/gl_account_inquiry.php?");
29 $this->add_lapp_function(1, _("Bank Account &Inquiry"),"gl/inquiry/bank_inquiry.php?");
30 $this->add_lapp_function(1, _("Ta&x Inquiry"),"gl/inquiry/tax_inquiry.php?");
32 $this->add_rapp_function(1, _("Trial &Balance"),"gl/inquiry/gl_trial_balance.php?");
33 $this->add_rapp_function(1, _("Banking &Reports"),"reporting/reports_main.php?Class=5");
34 $this->add_rapp_function(1, _("General Ledger &Reports"),"reporting/reports_main.php?Class=6");
36 $this->add_module(_("Maintenance"));
37 $this->add_lapp_function(2, _("Bank &Accounts"),"gl/manage/bank_accounts.php?");
38 $this->add_lapp_function(2, _("&Quick Entries"),"gl/manage/gl_quick_entries.php?");
39 $this->add_lapp_function(2, "","");
40 $this->add_lapp_function(2, _("&Currencies"),"gl/manage/currencies.php?");
41 $this->add_lapp_function(2, _("&Exchange Rates"),"gl/manage/exchange_rates.php?");
43 $this->add_rapp_function(2, _("&GL Accounts"),"gl/manage/gl_accounts.php?");
44 $this->add_rapp_function(2, _("GL Account &Groups"),"gl/manage/gl_account_types.php?");
45 $this->add_rapp_function(2, _("GL Account &Classes"),"gl/manage/gl_account_classes.php?");
46 if (count($installed_extensions) > 0)
48 foreach ($installed_extensions as $mod)
50 if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "GL")
51 $this->add_rapp_function(2, $mod["title"],
52 "modules/".$mod["path"]."/".$mod["filename"]."?",
53 isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );