X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fgeneralledger.php;h=4b72f8b80e1987c6d6f27eeb794554528ad84236;hb=ea1ac6e8c569745bd4099d47936f6dfe86b8b9d4;hp=284c567e16b32f08d4f416df1d05600a3742764a;hpb=dd243855c3f55cdba37a2806b2ba63ebe6c6e792;p=fa-stable.git diff --git a/applications/generalledger.php b/applications/generalledger.php index 284c567e..4b72f8b8 100644 --- a/applications/generalledger.php +++ b/applications/generalledger.php @@ -1,12 +1,20 @@ . +***********************************************************************/ class general_ledger_app extends application { function general_ledger_app() { - global $installed_modules; - $this->application("GL",_("Banking and General Ledger")); + global $installed_extensions; + $this->application("GL",_("&Banking and General Ledger")); $this->add_module(_("Transactions")); $this->add_lapp_function(0, _("&Payments"),"gl/gl_bank.php?NewPayment=Yes"); @@ -16,17 +24,18 @@ $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, _("&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, _("Trial &Balance"),"gl/inquiry/gl_trial_balance.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, _("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, _("Quick Entries"),"gl/manage/gl_quick_entries.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?"); @@ -34,12 +43,12 @@ $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) + if (count($installed_extensions) > 0) { - foreach ($installed_modules as $mod) + foreach ($installed_extensions as $mod) { - if ($mod["tab"] == "GL") - $this->add_rapp_function(2, $mod["name"], "modules/".$mod["path"]."/".$mod["filename"]."?"); + if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "GL") + $this->add_rapp_function(2, $mod["title"], "modules/".$mod["path"]."/".$mod["filename"]."?"); } } }