Merging changes form main trunk 2.2.5-2.2.6
[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 Drilldown"),
45                         "gl/inquiry/balance_sheet.php?", 'SA_GLANALYTIC');
46                 $this->add_rapp_function(1, _("&Profit and Loss Drilldown"),
47                         "gl/inquiry/profit_loss.php?", 'SA_GLANALYTIC');                
48                 $this->add_rapp_function(1, _("Banking &Reports"),
49                         "reporting/reports_main.php?Class=5", 'SA_BANKREP');
50                 $this->add_rapp_function(1, _("General Ledger &Reports"),
51                         "reporting/reports_main.php?Class="._("General Ledger"), 'SA_GLREP');
52
53                 $this->add_module(_("Maintenance"));
54                 $this->add_lapp_function(2, _("Bank &Accounts"),
55                         "gl/manage/bank_accounts.php?", 'SA_BANKACCOUNT');
56                 $this->add_lapp_function(2, _("&Quick Entries"),
57                         "gl/manage/gl_quick_entries.php?", 'SA_QUICKENTRY');
58                 $this->add_lapp_function(2, _("Account &Tags"),
59                         "admin/tags.php?type=account", 'SA_GLACCOUNTTAGS');
60                 $this->add_lapp_function(2, "","");
61                 $this->add_lapp_function(2, _("&Currencies"),
62                         "gl/manage/currencies.php?", 'SA_CURRENCY');
63                 $this->add_lapp_function(2, _("&Exchange Rates"),
64                         "gl/manage/exchange_rates.php?", 'SA_EXCHANGERATE');
65
66                 $this->add_rapp_function(2, _("&GL Accounts"),
67                         "gl/manage/gl_accounts.php?", 'SA_GLACCOUNT');
68                 $this->add_rapp_function(2, _("GL Account &Groups"),
69                         "gl/manage/gl_account_types.php?", 'SA_GLACCOUNTGROUP');
70                 $this->add_rapp_function(2, _("GL Account &Classes"),
71                         "gl/manage/gl_account_classes.php?", 'SA_GLACCOUNTCLASS');
72
73                 $this->add_extensions();
74         }
75 }
76
77
78 ?>