Fixed problem with multiply zero values in selector options.
[fa-stable.git] / applications / generalledger.php
index c227dffae1433c91112c99a205b4dfbfadfc3c57..994be1ae61077459bd9fdd8f111810e46a53907c 100644 (file)
@@ -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();
        }
 }