Esempio n. 1
0
 public function __construct()
 {
     $this->company = new Company();
     switch ($_GET['id']) {
         case 98:
             $this->header('Repair Balance Errors');
             FinancialReports::RepairTXBalanceErrors();
             break;
         case 99:
             $this->header('Transaction Audit');
             //FinancialReports::TXAudit();
             break;
         case 100:
             $this->header('Profit & Loss Statement');
             FinancialReports::PLStatement();
             break;
         case 101:
             $this->header('Trial Balance');
             FinancialReports::TrialBalance();
             break;
         case 102:
             $this->header('Balance Sheet');
             FinancialReports::BalanceSheet();
             break;
         case 103:
             $this->header('Statement of Cash Flows');
             FinancialReports::CashFlows();
             break;
         case 110:
             $this->header("Transactions report");
             FinancialReports::TransactionsReport();
             break;
         case 111:
             $this->header('Ledger Statements');
             FinancialReports::LedgerStatement();
             break;
         case 112:
             $this->header('Cash Book');
             FinancialReports::CashBook();
             break;
         case 113:
             $this->header('Credit Book');
             FinancialReports::CreditBook();
             break;
         case 114:
             $this->header('Debtors List');
             FinancialReports::DebtorsRegister();
             break;
         case 115:
             $this->header('Creditors List');
             FinancialReports::CreditorsRegister();
             break;
         case 120:
             $this->header('Revenue Report');
             FinancialReports::SalesReport();
             break;
         case 121:
             $this->header('Revenue By User');
             FinancialReports::SalesByUser();
             break;
         case 122:
             $this->header('Revenue By Item');
             FinancialReports::SalesByItem();
             break;
         case 123:
             $this->header('Revenue By Client');
             FinancialReports::SalesByClient();
             break;
         case 130:
             $this->header('Expenses Report');
             FinancialReports::ExpensesReport();
             break;
         case 131:
             $this->header('Expenses By Category');
             FinancialReports::ExpensesByCategory();
             break;
         case 132:
             $this->header('Expenses By Description');
             FinancialReports::ExpensesByDescription();
             break;
         case 133:
             $this->header('Expenses By Context');
             FinancialReports::ExpensesByContext();
             break;
         case 134:
             $this->header('Claims Per Employee');
             Body::ClaimsPerEmployee();
             break;
         case 200:
             $this->header('Client Register');
             Body::ClientRegister();
             break;
         case 201:
             $this->header('Client Quotations');
             Body::ClientQuotations();
             break;
         case 202:
             $this->header('Client Statement');
             Body::ClientStatement();
             break;
         case 203:
             $this->header('All Sales Invoices');
             Body::AllClientInvoices();
             break;
         case 204:
             $this->header('All Quotations');
             Body::AllClientQuotations();
             break;
         case 300:
             $this->header('Supplier Register');
             Body::SupplierRegister();
             break;
         case 301:
             $this->header('Supplier Orders');
             Body::SupplierOrders();
             break;
         case 302:
             $this->header('Supplier Statement');
             Body::SupplierStatement();
             break;
         case 303:
             $this->header('All Purchase Invoices');
             Body::PurchaseInvoices();
             break;
         case 304:
             $this->header('All Purchase Orders');
             Body::PurchaseOrders();
             break;
         case 400:
             $this->header('Employee Register');
             HRReports::EmployeeRegister();
             break;
         case 401:
             $this->header('Employee Statement');
             HRReports::EmployeeStatement();
             break;
         case 410:
             $this->header('Employee Advances');
             HRReports::EmployeeAdvances();
             break;
         case 411:
             $this->header('Employee Allowances');
             HRReports::EmployeeAllowances();
             break;
         case 412:
             $this->header('Employee Overtime');
             HRReports::EmployeeOvertime();
             break;
         case 413:
             $this->header('Payroll Summary');
             HRReports::PayrollSummary();
             break;
         case 500:
             $this->header('All Projects');
             ProjectReports::ProjectsRegister();
             break;
         case 501:
             $this->header('Project Report');
             ProjectReports::ProjectReport();
             break;
         case 502:
             $this->header('Client Receipts - Minor Works');
             ProjectReports::MinorWorksReceipts();
             break;
         default:
             # code...
             break;
     }
     $this->footer();
 }