X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fgeneralledger.php;h=994be1ae61077459bd9fdd8f111810e46a53907c;hb=f5d9da5adb7107b784a91ce1a81a912023b54ba6;hp=c227dffae1433c91112c99a205b4dfbfadfc3c57;hpb=5f06887dedd4d14701864fb72994d7e20352086d;p=fa-stable.git diff --git a/applications/generalledger.php b/applications/generalledger.php index c227dffa..994be1ae 100644 --- a/applications/generalledger.php +++ b/applications/generalledger.php @@ -13,7 +13,6 @@ class general_ledger_app extends application { function general_ledger_app() { - global $installed_extensions; $this->application("GL", _($this->help_context = "&Banking and General Ledger")); $this->add_module(_("Transactions")); @@ -42,8 +41,10 @@ class general_ledger_app extends application $this->add_rapp_function(1, _("Trial &Balance"), "gl/inquiry/gl_trial_balance.php?", 'SA_GLANALYTIC'); - $this->add_rapp_function(1, _("Balance &Sheet"), + $this->add_rapp_function(1, _("Balance &Sheet Drilldown"), "gl/inquiry/balance_sheet.php?", 'SA_GLANALYTIC'); + $this->add_rapp_function(1, _("&Profit and Loss Drilldown"), + "gl/inquiry/profit_loss.php?", 'SA_GLANALYTIC'); $this->add_rapp_function(1, _("Banking &Reports"), "reporting/reports_main.php?Class=5", 'SA_BANKREP'); $this->add_rapp_function(1, _("General Ledger &Reports"), @@ -68,16 +69,8 @@ class general_ledger_app extends application "gl/manage/gl_account_types.php?", 'SA_GLACCOUNTGROUP'); $this->add_rapp_function(2, _("GL Account &Classes"), "gl/manage/gl_account_classes.php?", 'SA_GLACCOUNTCLASS'); - if (count($installed_extensions) > 0) - { - foreach ($installed_extensions as $mod) - { - if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "GL") - $this->add_rapp_function(2, $mod["title"], - "modules/".$mod["path"]."/".$mod["filename"]."?", - isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' ); - } - } + + $this->add_extensions(); } }