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 $this->application("GL", _($this->help_context = "&Banking and General Ledger"));
18 $this->add_module(_("Transactions"));
19 $this->add_lapp_function(0, _("&Payments"),
20 "gl/gl_bank.php?NewPayment=Yes", 'SA_PAYMENT', MENU_TRANSACTION);
21 $this->add_lapp_function(0, _("&Deposits"),
22 "gl/gl_bank.php?NewDeposit=Yes", 'SA_DEPOSIT', MENU_TRANSACTION);
23 $this->add_lapp_function(0, _("Bank Account &Transfers"),
24 "gl/bank_transfer.php?", 'SA_BANKTRANSFER', MENU_TRANSACTION);
25 $this->add_rapp_function(0, _("&Journal Entry"),
26 "gl/gl_journal.php?NewJournal=Yes", 'SA_JOURNALENTRY', MENU_TRANSACTION);
27 $this->add_rapp_function(0, _("&Budget Entry"),
28 "gl/gl_budget.php?", 'SA_BUDGETENTRY', MENU_TRANSACTION);
29 $this->add_rapp_function(0, _("&Reconcile Bank Account"),
30 "gl/bank_account_reconcile.php?", 'SA_RECONCILE', MENU_TRANSACTION);
31 $this->add_rapp_function(0, _("Revenue / &Costs Accruals"),
32 "gl/accruals.php?", 'SA_ACCRUALS', MENU_TRANSACTION);
34 $this->add_module(_("Inquiries and Reports"));
35 $this->add_lapp_function(1, _("&Journal Inquiry"),
36 "gl/inquiry/journal_inquiry.php?", 'SA_GLANALYTIC', MENU_INQUIRY);
37 $this->add_lapp_function(1, _("GL &Inquiry"),
38 "gl/inquiry/gl_account_inquiry.php?", 'SA_GLTRANSVIEW', MENU_INQUIRY);
39 $this->add_lapp_function(1, _("Bank Account &Inquiry"),
40 "gl/inquiry/bank_inquiry.php?", 'SA_BANKTRANSVIEW', MENU_INQUIRY);
41 $this->add_lapp_function(1, _("Ta&x Inquiry"),
42 "gl/inquiry/tax_inquiry.php?", 'SA_TAXREP', MENU_INQUIRY);
44 $this->add_rapp_function(1, _("Trial &Balance"),
45 "gl/inquiry/gl_trial_balance.php?", 'SA_GLANALYTIC', MENU_INQUIRY);
46 $this->add_rapp_function(1, _("Balance &Sheet Drilldown"),
47 "gl/inquiry/balance_sheet.php?", 'SA_GLANALYTIC', MENU_INQUIRY);
48 $this->add_rapp_function(1, _("&Profit and Loss Drilldown"),
49 "gl/inquiry/profit_loss.php?", 'SA_GLANALYTIC', MENU_INQUIRY);
50 $this->add_rapp_function(1, _("Banking &Reports"),
51 "reporting/reports_main.php?Class=5", 'SA_BANKREP', MENU_REPORT);
52 $this->add_rapp_function(1, _("General Ledger &Reports"),
53 "reporting/reports_main.php?Class=6", 'SA_GLREP', MENU_REPORT);
55 $this->add_module(_("Maintenance"));
56 $this->add_lapp_function(2, _("Bank &Accounts"),
57 "gl/manage/bank_accounts.php?", 'SA_BANKACCOUNT', MENU_MAINTENANCE);
58 $this->add_lapp_function(2, _("&Quick Entries"),
59 "gl/manage/gl_quick_entries.php?", 'SA_QUICKENTRY', MENU_MAINTENANCE);
60 $this->add_lapp_function(2, _("Account &Tags"),
61 "admin/tags.php?type=account", 'SA_GLACCOUNTTAGS', MENU_MAINTENANCE);
62 $this->add_lapp_function(2, "","");
63 $this->add_lapp_function(2, _("&Currencies"),
64 "gl/manage/currencies.php?", 'SA_CURRENCY', MENU_MAINTENANCE);
65 $this->add_lapp_function(2, _("&Exchange Rates"),
66 "gl/manage/exchange_rates.php?", 'SA_EXCHANGERATE', MENU_MAINTENANCE);
68 $this->add_rapp_function(2, _("&GL Accounts"),
69 "gl/manage/gl_accounts.php?", 'SA_GLACCOUNT', MENU_ENTRY);
70 $this->add_rapp_function(2, _("GL Account &Groups"),
71 "gl/manage/gl_account_types.php?", 'SA_GLACCOUNTGROUP', MENU_MAINTENANCE);
72 $this->add_rapp_function(2, _("GL Account &Classes"),
73 "gl/manage/gl_account_classes.php?", 'SA_GLACCOUNTCLASS', MENU_MAINTENANCE);
74 $this->add_rapp_function(2, _("&Closing GL Transactions"),
75 "gl/manage/close_period.php?", 'SA_GLSETUP', MENU_MAINTENANCE);
76 $this->add_rapp_function(2, _("&Revaluation of Currency Accounts"),
77 "gl/manage/revaluate_currencies.php?", 'SA_EXCHANGERATE', MENU_MAINTENANCE);
79 $this->add_extensions();