Incorrect Journal Balance (sales invoice) when many decimals in tax and price.
[fa-stable.git] / applications / generalledger.php
index 21d48b35e4535ad7ffeba22e7799f3b2767c58d5..4b5ac702560244ebcac4edf484975fcf8a8be05e 100644 (file)
@@ -11,9 +11,9 @@
 ***********************************************************************/
 class general_ledger_app extends application
 {
-       function general_ledger_app()
+       function __construct()
        {
-               $this->application("GL", _($this->help_context = "&Banking and General Ledger"));
+               parent::__construct("GL", _($this->help_context = "&Banking and General Ledger"));
 
                $this->add_module(_("Transactions"));
                $this->add_lapp_function(0, _("&Payments"),
@@ -72,7 +72,7 @@ class general_ledger_app extends application
                $this->add_rapp_function(2, _("GL Account &Classes"),
                        "gl/manage/gl_account_classes.php?", 'SA_GLACCOUNTCLASS', MENU_MAINTENANCE);
                $this->add_rapp_function(2, _("&Closing GL Transactions"),
-                       "gl/manage/close_period.php?", 'SA_GLSETUP', MENU_MAINTENANCE);
+                       "gl/manage/close_period.php?", 'SA_GLCLOSE', MENU_MAINTENANCE);
                $this->add_rapp_function(2, _("&Revaluation of Currency Accounts"),
                        "gl/manage/revaluate_currencies.php?", 'SA_EXCHANGERATE', MENU_MAINTENANCE);