Password reset mail could take several hours. After fix only a couple of seconds...
[fa-stable.git] / applications / generalledger.php
index 670f27aace65cd2b590d78f6ef7c06241b805ab7..f81f04e04a4423cb77d1557d0a3f50b2302a0952 100644 (file)
 ***********************************************************************/
 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"),
-                       "gl/gl_bank.php?NewPayment=Yes", 'SA_PAYMENT', MENU_ENTRY);
+                       "gl/gl_bank.php?NewPayment=Yes", 'SA_PAYMENT', MENU_TRANSACTION);
                $this->add_lapp_function(0, _("&Deposits"),
-                       "gl/gl_bank.php?NewDeposit=Yes", 'SA_DEPOSIT', MENU_ENTRY);
+                       "gl/gl_bank.php?NewDeposit=Yes", 'SA_DEPOSIT', MENU_TRANSACTION);
                $this->add_lapp_function(0, _("Bank Account &Transfers"),
-                       "gl/bank_transfer.php?", 'SA_BANKTRANSFER', MENU_ENTRY);
+                       "gl/bank_transfer.php?", 'SA_BANKTRANSFER', MENU_TRANSACTION);
                $this->add_rapp_function(0, _("&Journal Entry"),
-                       "gl/gl_journal.php?NewJournal=Yes", 'SA_JOURNALENTRY', MENU_ENTRY);
+                       "gl/gl_journal.php?NewJournal=Yes", 'SA_JOURNALENTRY', MENU_TRANSACTION);
                $this->add_rapp_function(0, _("&Budget Entry"),
-                       "gl/gl_budget.php?", 'SA_BUDGETENTRY', MENU_ENTRY);
+                       "gl/gl_budget.php?", 'SA_BUDGETENTRY', MENU_TRANSACTION);
                $this->add_rapp_function(0, _("&Reconcile Bank Account"),
-                       "gl/bank_account_reconcile.php?", 'SA_RECONCILE', MENU_INQUIRY);
+                       "gl/bank_account_reconcile.php?", 'SA_RECONCILE', MENU_TRANSACTION);
                $this->add_rapp_function(0, _("Revenue / &Costs Accruals"),
-                       "gl/accruals.php?", 'SA_ACCRUALS', MENU_INQUIRY);
+                       "gl/accruals.php?", 'SA_ACCRUALS', MENU_TRANSACTION);
 
                $this->add_module(_("Inquiries and Reports"));
                $this->add_lapp_function(1, _("&Journal Inquiry"),
@@ -54,7 +54,7 @@ class general_ledger_app extends application
 
                $this->add_module(_("Maintenance"));
                $this->add_lapp_function(2, _("Bank &Accounts"),
-                       "gl/manage/bank_accounts.php?", 'SA_BANKACCOUNT', MENU_ENTRY);
+                       "gl/manage/bank_accounts.php?", 'SA_BANKACCOUNT', MENU_MAINTENANCE);
                $this->add_lapp_function(2, _("&Quick Entries"),
                        "gl/manage/gl_quick_entries.php?", 'SA_QUICKENTRY', MENU_MAINTENANCE);
                $this->add_lapp_function(2, _("Account &Tags"),
@@ -71,7 +71,8 @@ class general_ledger_app extends application
                        "gl/manage/gl_account_types.php?", 'SA_GLACCOUNTGROUP', MENU_MAINTENANCE);
                $this->add_rapp_function(2, _("GL Account &Classes"),
                        "gl/manage/gl_account_classes.php?", 'SA_GLACCOUNTCLASS', MENU_MAINTENANCE);
-               $this->add_rapp_function(2, "","");
+               $this->add_rapp_function(2, _("&Closing GL Transactions"),
+                       "gl/manage/close_period.php?", 'SA_GLSETUP', MENU_MAINTENANCE);
                $this->add_rapp_function(2, _("&Revaluation of Currency Accounts"),
                        "gl/manage/revaluate_currencies.php?", 'SA_EXCHANGERATE', MENU_MAINTENANCE);
 
@@ -80,4 +81,3 @@ class general_ledger_app extends application
 }
 
 
-?>
\ No newline at end of file