<?php
/**********************************************************************

	Released under the terms of the GNU General Public License, GPL,
***********************************************************************/

        
class general_ledger_app extends application
{
	function __construct()
	{
		parent::__construct("GL", _($this->help_context = "&GL"));

	$this->add_module(_("Transactions"));
            $this->add_lapp_function(0, _("&Payments"),"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_TRANSACTION);
            $this->add_lapp_function(0, _("&Cash Payments"),"gl/gl_cash_payment.php?NewPayment=Yes", 'SA_CASH_PAYMENT', MENU_TRANSACTION);
            $this->add_lapp_function(0, _("&Cash Receipts"),"gl/gl_cash_receipt.php?NewDeposit=Yes", 'SA_CASH_RECEIPT', MENU_TRANSACTION);
            $this->add_lapp_function(0, _("&GL Debit Adjustments"),"gl/pre_gl_debit.php?NewGLDebitAdjust=Yes", 'SA_GL_DEBIT', MENU_TRANSACTION);
            $this->add_lapp_function(0, _("&GL Credit Adjustments"),"gl/pre_gl_credit.php?NewGLCreditAdjust=Yes", 'SA_GL_CREDIT', MENU_TRANSACTION);
           
            $this->add_lapp_function(0, "",""); 
			
            $this->add_lapp_function(0, _("Bank Account &Transfers"),"gl/bank_transfer.php?", 'SA_BANKTRANSFER', MENU_TRANSACTION);
            $this->add_lapp_function(0, _("Batch Bank &Transfer Requests"),"gl/batch_bank_transfer.php?NewBBT=Yes", 'SA_BANKTRANSFER', MENU_TRANSACTION);
            $this->add_lapp_function(0, _("Bank Customer &Payments"),"gl/bank_customer_payments.php?", 'SA_BANK_CUST_PAYMENTS', MENU_TRANSACTION);
        
            $this->add_lapp_function(0, "","");  
            $this->add_lapp_function(0, _("Utility Bills"),"gl/utility_bills.php?", 'SA_UTILITY_BILLS', MENU_TRANSACTION);
            $this->add_lapp_function(0, _("Utility Bill Credit Notes"),"gl/utility_bill_credit_note.php?", 'SA_UTILITY_BILL_CREDIT_NOTES', MENU_TRANSACTION);
            
//            $this->add_lapp_function(0, "","");  
            $this->add_lapp_function(0, _("Monthly Project Costs"),"gl/monthly_project_costs.php?NewOrder=1", 'SA_MONTHLY_PROJECT_COSTS', MENU_TRANSACTION);
           
            
            $this->add_lapp_function(0, "","");         
            $this->add_lapp_function(0, _("Bulk Bank Account &Transfers"),"gl/bulk_bank_transfers.php?", 'SA_BANKTRANSFER', MENU_TRANSACTION);
            
            $this->add_lapp_function(0, _("&Journal Entry"),"gl/gl_journal.php?NewJournal=Yes", 'SA_JOURNALENTRY', MENU_TRANSACTION);
//            $this->add_lapp_function(0, _("&Budget Entry"),"gl/gl_budget.php?", 'SA_BUDGETENTRY', MENU_TRANSACTION);                

        
            $this->add_rapp_function(0, _("&Approve Utility Bills"),"gl/inquiry/approve_utility_bills_inquiry.php?", 'SA_UTILITY_BILL_INQ', MENU_TRANSACTION);
            $this->add_rapp_function(0, _("&Approve Utility Bill Credit Notes"),"gl/inquiry/approve_utility_bill_credit_notes_inquiry.php?", 'SA_UTILITY_BILL_CREDIT_NOTES_INQ', MENU_TRANSACTION);
            $this->add_rapp_function(0, _("&Approve Monthly project Costs"),"gl/inquiry/approve_monthly_project_costs_inquiry.php?", 'SA_MONTHLY_PROJECT_COSTS_INQ', MENU_TRANSACTION);
        
            
            $this->add_rapp_function(0, "","");
            $this->add_rapp_function(0, _("&Reconcile Bank Account"),"gl/bank_account_reconcile.php?", 'SA_RECONCILE', MENU_TRANSACTION);
            $this->add_rapp_function(0, _("Revenue / &Costs Accruals"),"gl/accruals.php?", 'SA_ACCRUALS', MENU_TRANSACTION);
            $this->add_rapp_function(0, "","");
            $this->add_rapp_function(0, _('&Print Cheques'),"gl/print_cheques.php?", 'SA_PRINT_CHEQUES', MENU_TRANSACTION);
            $this->add_rapp_function(0, _('&Print Payment Vouchers'),"gl/print_payment_vouchers.php?", 'SA_PRINT_CHEQUES', MENU_TRANSACTION);
            $this->add_rapp_function(0, _('&Print Receipts'),"gl/print_receipts.php?", 'SA_PRINT_CHEQUES', MENU_TRANSACTION);
                
            $this->add_rapp_function(0, "","");
            $this->add_rapp_function(0, _('&Generate FI Accounting Entries'),"gl/generate_fi_accounting_entries.php?", 'SA_GENERATE_FI_ENTRIES', MENU_TRANSACTION);
            $this->add_rapp_function(0, _('&Post FI Accounting Entries'),"gl/post_fi_accounting_entries.php?", 'SA_POST_FI_ENTRIES', MENU_TRANSACTION);
            $this->add_rapp_function(0, "","");
            $this->add_rapp_function(0, _('&Month Reporting Adjustments'),"gl/month_reporting_adjustments.php?", 'SA_MONTH_REPORTING_ADJUSTMENTS', MENU_TRANSACTION);

            
            

        $this->add_module(_("Inquiries and Reports"));
            $this->add_lapp_function(1, _("&GL Adjustments Inquiry"), "gl/inquiry/pre_gl_adjustments_inquiry.php?", 'SA_GLANALYTIC', MENU_INQUIRY);		
            $this->add_lapp_function(1, _("&Unapproved GL Adjustment Details Inquiry"), "gl/inquiry/umapproved_gl_adjustment_details_inquiry.php?", 'SA_GLANALYTIC', MENU_INQUIRY);		
            $this->add_lapp_function(1, _("&Journal Inquiry"),"gl/inquiry/journal_inquiry.php?", 'SA_GLANALYTIC', MENU_INQUIRY);
            $this->add_lapp_function(1, _("GL Account &Inquiry"),"gl/inquiry/gl_account_inquiry.php?", 'SA_GLTRANSVIEW', MENU_INQUIRY);
            $this->add_lapp_function(1, _("Bank Account &Inquiry"),"gl/inquiry/bank_inquiry.php?", 'SA_BANKTRANSVIEW', MENU_INQUIRY);
            $this->add_lapp_function(1, _("Ta&x Inquiry"),"gl/inquiry/tax_inquiry.php?", 'SA_TAXREP', MENU_INQUIRY);
            $this->add_lapp_function(1, _("&Utility Bill Inquiry"),"gl/inquiry/utility_bills_inquiry.php?", 'SA_UTILITY_BILL_INQ', MENU_INQUIRY);
            $this->add_lapp_function(1, _("&Utility Bill Credit Notes Inquiry"),"gl/inquiry/utility_bill_credit_notes_inquiry.php?", 'SA_UTILITY_BILL_CREDIT_NOTES_INQ', MENU_INQUIRY);
            $this->add_lapp_function(1, _("&Utility Bill Expense Details Inquiry"), "gl/inquiry/utility_bill_expense_details_inquiry.php?", 'SA_UTILITY_BILL_INQ', MENU_INQUIRY);		
           
            $this->add_lapp_function(1, _("&Monthly Project Costs Inquiry"),"gl/inquiry/monthly_project_costs_inquiry.php?", 'SA_MONTHLY_PROJECT_COSTS_INQ', MENU_INQUIRY);
            $this->add_lapp_function(1, _("Bank Reconciliation Inquiry"),"gl/inquiry/bank_reconciliation_inquiry.php?", 'SA_RECONCILE', MENU_INQUIRY);
            $this->add_lapp_function(1, _("Batch Bank Transfer Requests Inquiry"),"gl/inquiry/batch_bank_transfer_req_inquiry.php?", 'SA_RECONCILE', MENU_INQUIRY);
            $this->add_lapp_function(1,"", "");
            $this->add_lapp_function(1, _("&Company Cash Flow View"),"gl/inquiry/company_cash_flow_view.php?", 'SA_COMPANY_CASH_FLOW_VIEW', MENU_INQUIRY);
            

            $this->add_rapp_function(1, _("Trial &Balance"),"gl/inquiry/gl_trial_balance.php?", 'SA_GLANALYTIC', MENU_INQUIRY);
            $this->add_rapp_function(1, _("&Balance Sheet View"),"gl/inquiry/balance_sheet_details.php?", 'SA_GLANALYTIC', MENU_INQUIRY);
            $this->add_rapp_function(1, _("&Profit and Loss View"),"gl/inquiry/profit_loss_details.php?", 'SA_GLANALYTIC', MENU_INQUIRY);
            $this->add_rapp_function(1, _("Balance &Sheet Drilldown"),"gl/inquiry/balance_sheet.php?", 'SA_GLANALYTIC', MENU_INQUIRY);
            $this->add_rapp_function(1, _("&Profit and Loss Drilldown"),"gl/inquiry/profit_loss.php?", 'SA_GLANALYTIC', MENU_INQUIRY);
            $this->add_rapp_function(1, _("&Cheque Printing Log Inquiry"),"gl/inquiry/cheque_printing_log_inquiry.php?", 'SA_GLANALYTIC', MENU_INQUIRY);
            $this->add_rapp_function(1,"", "");
            $this->add_rapp_function(1, _("&Project Income Statement View"),"gl/inquiry/project_profit_loss_details.php?", 'SA_GLANALYTIC', MENU_INQUIRY);
            $this->add_rapp_function(1,"", "");
            
            $this->add_rapp_function(1, _("Financial Integration Batches Inquiry"),"gl/inquiry/fi_batches_inquiry.php?", 'SA_FI_BATCHES_INQ', MENU_INQUIRY);
            $this->add_rapp_function(1, _("Financial Integration Transactions Inquiry"),"gl/inquiry/fi_transactions_inquiry.php?", 'SA_FI_TRANSACTIONS_INQ', MENU_INQUIRY);
            $this->add_rapp_function(1, _("Financial Integration Account Inquiry"),"gl/inquiry/fi_account_inquiry.php?", 'SA_FI_TRANSACTIONS_INQ', MENU_INQUIRY);
            $this->add_rapp_function(1, _("GL Batches Inquiry"),"gl/inquiry/gl_batches_inquiry.php?", 'SA_GL_BATCHES_INQ', MENU_INQUIRY);
            $this->add_rapp_function(1,"", "");
            $this->add_rapp_function(1, _("Banking &Reports"),"reporting/reports_main.php?Class=".RC_BANKING, 'SA_BANKREP', MENU_REPORT);
            $this->add_rapp_function(1, _("General Ledger &Reports"),"reporting/reports_main.php?Class=".RC_GL, 'SA_GLREP', MENU_REPORT);

        $this->add_module(_("Maintenance"));
            $this->add_lapp_function(2, _("Bank &Accounts"),"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"),"admin/tags.php?type=account", 'SA_GLACCOUNTTAGS', MENU_MAINTENANCE);
            $this->add_lapp_function(2, "","");
            $this->add_lapp_function(2, _("&Currencies"),"gl/manage/currencies.php?", 'SA_CURRENCY', MENU_MAINTENANCE);
            $this->add_lapp_function(2, _("&Exchange Rates"),"gl/manage/exchange_rates.php?", 'SA_EXCHANGERATE', MENU_MAINTENANCE);
            $this->add_lapp_function(2, _("&Accounting Periods"),"gl/manage/accounting_periods.php?", 'SA_ACCOUNTING_PERIODS', MENU_MAINTENANCE);
            $this->add_lapp_function(2, "","");
            $this->add_lapp_function(2, _("&Revaluation of Currency Accounts"),"gl/manage/revaluate_currencies.php?", 'SA_EXCHANGERATE', MENU_MAINTENANCE);


            $this->add_rapp_function(2, _("&GL Accounts"),"gl/manage/gl_accounts.php?", 'SA_GLACCOUNT', MENU_ENTRY);
            $this->add_rapp_function(2, _("GL Account &Groups"),"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, _("&Budget Entry"),"gl/manage/gl_account_budgets.php?", 'SA_BUDGETENTRY', MENU_MAINTENANCE);    
//          
            $this->add_rapp_function(2, _("Utility Expense Types"),"gl/manage/utility_expense_types.php?", 'SA_UTILITY_EXPENSE_TYPES', MENU_MAINTENANCE);
//            $this->add_rapp_function(2, "","");
//            $this->add_rapp_function(2, _("Import GL Bank Transactions"),"gl/manage/import_gl_bank_transactions.php?", 'SA_IMPORT_GL_BANK_TRANS', MENU_MAINTENANCE);
            $this->add_rapp_function(2, "","");
            $this->add_rapp_function(2, _("&Edit GL Transation Type"),"gl/edit_gl_transaction_type.php?", 'SA_EDIT_GL_TRANS_TYPE', MENU_MAINTENANCE);
            $this->add_extensions();
            $this->add_extensions();
	}
}


?>