Merging version 2.1 RC to main trunk.
[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                         global $installed_modules;
17                         $this->application("GL",_("&Banking and General Ledger"));
18
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, _("Bank Account &Inquiry"),"gl/inquiry/bank_inquiry.php?");
28                         $this->add_lapp_function(1, _("GL Account &Inquiry"),"gl/inquiry/gl_account_inquiry.php?");
29                         $this->add_lapp_function(1, _("Trial &Balance"),"gl/inquiry/gl_trial_balance.php?");
30                         $this->add_lapp_function(1, _("Ta&x Inquiry"),"gl/inquiry/tax_inquiry.php?");
31
32                         $this->add_rapp_function(1, _("Banking &Reports"),"reporting/reports_main.php?Class=5");
33                         $this->add_rapp_function(1, _("General Ledger &Reports"),"reporting/reports_main.php?Class=6");
34
35                         $this->add_module(_("Maintenance"));
36                         $this->add_lapp_function(2, _("Bank &Accounts"),"gl/manage/bank_accounts.php?");
37                         $this->add_lapp_function(2, _("&Quick Entries"),"gl/manage/gl_quick_entries.php?");
38                         $this->add_lapp_function(2, "","");
39                         $this->add_lapp_function(2, _("&Currencies"),"gl/manage/currencies.php?");
40                         $this->add_lapp_function(2, _("&Exchange Rates"),"gl/manage/exchange_rates.php?");
41
42                         $this->add_rapp_function(2, _("&GL Accounts"),"gl/manage/gl_accounts.php?");
43                         $this->add_rapp_function(2, _("GL Account &Groups"),"gl/manage/gl_account_types.php?");
44                         $this->add_rapp_function(2, _("GL Account &Classes"),"gl/manage/gl_account_classes.php?");
45                         if (count($installed_modules) > 0)
46                         {
47                                 foreach ($installed_modules as $mod)
48                                 {
49                                         if ($mod["tab"] == "GL")
50                                                 $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");
51                                 }
52                         }       
53                 }
54         }
55
56
57 ?>