More fixes to changed access system, activated js confirm dialogs.
[fa-stable.git] / applications / generalledger.php
index 58409c8cd688449c995f015ee30e697557b9cd88..89a34a59a343dcc8f0c89896e4470dd7d89ad12c 100644 (file)
@@ -1,36 +1,56 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
        class general_ledger_app extends application 
        {
                function general_ledger_app() 
                {
-                       $this->application("GL",_("Banking and General Ledger"));
+                       global $installed_modules;
+                       $this->application("GL",_("&Banking and General Ledger"));
 
                        $this->add_module(_("Transactions"));
-                       $this->add_lapp_function(0, _("Payments"),"gl/gl_payment.php?NewPayment=Yes");
-                       $this->add_lapp_function(0, _("Deposits"),"gl/gl_deposit.php?NewDeposit=Yes");
-                       $this->add_lapp_function(0, _("Bank Account Transfers"),"gl/bank_transfer.php?");
-                       $this->add_rapp_function(0, _("Journal Entry"),"gl/gl_journal.php?NewJournal=Yes");
-
+                       $this->add_lapp_function(0, _("&Payments"),"gl/gl_bank.php?NewPayment=Yes");
+                       $this->add_lapp_function(0, _("&Deposits"),"gl/gl_bank.php?NewDeposit=Yes");
+                       $this->add_lapp_function(0, _("Bank Account &Transfers"),"gl/bank_transfer.php?");
+                       $this->add_rapp_function(0, _("&Journal Entry"),"gl/gl_journal.php?NewJournal=Yes");
+                       $this->add_rapp_function(0, _("&Budget Entry"),"gl/gl_budget.php?");
+            $this->add_rapp_function(0, _("&Reconcile Bank Account"),"gl/bank_account_reconcile.php?");
                        $this->add_module(_("Inquiries and Reports"));
-                       $this->add_lapp_function(1, _("Bank Account Inquiry"),"gl/inquiry/bank_inquiry.php?");
-                       $this->add_lapp_function(1, _("GL Account Inquiry"),"gl/inquiry/gl_account_inquiry.php?");
-                       $this->add_lapp_function(1, "","");
-                       $this->add_lapp_function(1, _("Trial Balance"),"gl/inquiry/gl_trial_balance.php?");
+                       $this->add_lapp_function(1, _("&Journal Inquiry"),"gl/inquiry/journal_inquiry.php?");
+                       $this->add_lapp_function(1, _("GL Account &Inquiry"),"gl/inquiry/gl_account_inquiry.php?");
+                       $this->add_lapp_function(1, _("Bank Account &Inquiry"),"gl/inquiry/bank_inquiry.php?");
+                       $this->add_lapp_function(1, _("Ta&x Inquiry"),"gl/inquiry/tax_inquiry.php?");
 
-                       $this->add_rapp_function(1, _("Banking Reports"),"reporting/reports_main.php?Class=5");
-                       $this->add_rapp_function(1, _("General Ledger Reports"),"reporting/reports_main.php?Class=6");
+                       $this->add_rapp_function(1, _("Trial &Balance"),"gl/inquiry/gl_trial_balance.php?");
+                       $this->add_rapp_function(1, _("Banking &Reports"),"reporting/reports_main.php?Class=5");
+                       $this->add_rapp_function(1, _("General Ledger &Reports"),"reporting/reports_main.php?Class=6");
 
                        $this->add_module(_("Maintenance"));
-                       $this->add_lapp_function(2, _("Bank Accounts"),"gl/manage/bank_accounts.php?");
-                       $this->add_lapp_function(2, _("Payment, Deposit and Transfer Types"),"gl/manage/bank_trans_types.php?");
+                       $this->add_lapp_function(2, _("Bank &Accounts"),"gl/manage/bank_accounts.php?");
+                       $this->add_lapp_function(2, _("&Quick Entries"),"gl/manage/gl_quick_entries.php?");
                        $this->add_lapp_function(2, "","");
-                       $this->add_lapp_function(2, _("Currencies"),"gl/manage/currencies.php?");
-                       $this->add_lapp_function(2, _("Exchange Rates"),"gl/manage/exchange_rates.php?");
-
-                       $this->add_rapp_function(2, _("GL Accounts"),"gl/manage/gl_accounts.php?");
-                       $this->add_rapp_function(2, _("GL Account Groups"),"gl/manage/gl_account_types.php?");
-                       $this->add_rapp_function(2, _("GL Account Classes"),"gl/manage/gl_account_classes.php?");
+                       $this->add_lapp_function(2, _("&Currencies"),"gl/manage/currencies.php?");
+                       $this->add_lapp_function(2, _("&Exchange Rates"),"gl/manage/exchange_rates.php?");
+
+                       $this->add_rapp_function(2, _("&GL Accounts"),"gl/manage/gl_accounts.php?");
+                       $this->add_rapp_function(2, _("GL Account &Groups"),"gl/manage/gl_account_types.php?");
+                       $this->add_rapp_function(2, _("GL Account &Classes"),"gl/manage/gl_account_classes.php?");
+                       if (count($installed_modules) > 0)
+                       {
+                               foreach ($installed_modules as $mod)
+                               {
+                                       if ($mod["tab"] == "GL")
+                                               $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?");
+                               }
+                       }       
                }
        }