Optimized extensions related code.
[fa-stable.git] / applications / generalledger.php
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 ***********************************************************************/
12 class general_ledger_app extends application 
13 {
14         function general_ledger_app() 
15         {
16                 $this->application("GL", _($this->help_context = "&Banking and General Ledger"));
17
18                 $this->add_module(_("Transactions"));
19                 $this->add_lapp_function(0, _("&Payments"),
20                         "gl/gl_bank.php?NewPayment=Yes", 'SA_PAYMENT');
21                 $this->add_lapp_function(0, _("&Deposits"),
22                         "gl/gl_bank.php?NewDeposit=Yes", 'SA_DEPOSIT');
23                 $this->add_lapp_function(0, _("Bank Account &Transfers"),
24                         "gl/bank_transfer.php?", 'SA_BANKTRANSFER');
25                 $this->add_rapp_function(0, _("&Journal Entry"),
26                         "gl/gl_journal.php?NewJournal=Yes", 'SA_JOURNALENTRY');
27                 $this->add_rapp_function(0, _("&Budget Entry"),
28                         "gl/gl_budget.php?", 'SA_BUDGETENTRY');
29                 $this->add_rapp_function(0, _("&Reconcile Bank Account"),
30                         "gl/bank_account_reconcile.php?", 'SA_RECONCILE');
31                         
32                 $this->add_module(_("Inquiries and Reports"));
33                 $this->add_lapp_function(1, _("&Journal Inquiry"),
34                         "gl/inquiry/journal_inquiry.php?", 'SA_GLANALYTIC');
35                 $this->add_lapp_function(1, _("GL &Inquiry"),
36                         "gl/inquiry/gl_account_inquiry.php?", 'SA_GLTRANSVIEW');
37                 $this->add_lapp_function(1, _("Bank Account &Inquiry"),
38                         "gl/inquiry/bank_inquiry.php?", 'SA_BANKTRANSVIEW');
39                 $this->add_lapp_function(1, _("Ta&x Inquiry"),
40                         "gl/inquiry/tax_inquiry.php?", 'SA_TAXREP');
41
42                 $this->add_rapp_function(1, _("Trial &Balance"),
43                         "gl/inquiry/gl_trial_balance.php?", 'SA_GLANALYTIC');
44                 $this->add_rapp_function(1, _("Balance &Sheet"),
45                         "gl/inquiry/balance_sheet.php?", 'SA_GLANALYTIC');
46                 $this->add_rapp_function(1, _("Banking &Reports"),
47                         "reporting/reports_main.php?Class=5", 'SA_BANKREP');
48                 $this->add_rapp_function(1, _("General Ledger &Reports"),
49                         "reporting/reports_main.php?Class="._("General Ledger"), 'SA_GLREP');
50
51                 $this->add_module(_("Maintenance"));
52                 $this->add_lapp_function(2, _("Bank &Accounts"),
53                         "gl/manage/bank_accounts.php?", 'SA_BANKACCOUNT');
54                 $this->add_lapp_function(2, _("&Quick Entries"),
55                         "gl/manage/gl_quick_entries.php?", 'SA_QUICKENTRY');
56                 $this->add_lapp_function(2, _("Account &Tags"),
57                         "admin/tags.php?type=account", 'SA_GLACCOUNTTAGS');
58                 $this->add_lapp_function(2, "","");
59                 $this->add_lapp_function(2, _("&Currencies"),
60                         "gl/manage/currencies.php?", 'SA_CURRENCY');
61                 $this->add_lapp_function(2, _("&Exchange Rates"),
62                         "gl/manage/exchange_rates.php?", 'SA_EXCHANGERATE');
63
64                 $this->add_rapp_function(2, _("&GL Accounts"),
65                         "gl/manage/gl_accounts.php?", 'SA_GLACCOUNT');
66                 $this->add_rapp_function(2, _("GL Account &Groups"),
67                         "gl/manage/gl_account_types.php?", 'SA_GLACCOUNTGROUP');
68                 $this->add_rapp_function(2, _("GL Account &Classes"),
69                         "gl/manage/gl_account_classes.php?", 'SA_GLACCOUNTCLASS');
70
71                 $this->add_extensions();
72         }
73 }
74
75
76 ?>