$id = $loggedin_user->company_id; } $company = new SI_Company(); if($company->get($id) === FALSE){ $error_msg .= "Could not retrieve data for company!\n"; debug_message($company->getLastError()); } $balance = $company->getBalance(); if($balance === FALSE){ $error_msg .= "Error getting your outstanding balance!"; debug_message($company->getLastError()); } $transactions = $company->getTransactions(NULL, 5); if($transactions === FALSE){ $error_msg .= "Error getting transactions for company!\n"; debug_message($company->getLastError()); } $invoice = new SI_Invoice(); $invoices = $invoice->getOutstanding($company->id); if($invoices === FALSE){ $error_msg .= "Could not retrieve Outstanding Invoice list!\n"; debug_message($invoice->getLastError()); } $project = new SI_Project(); $active_projects = TRUE; if(isset($_REQUEST['show_all']) && $_REQUEST['show_all'] == 'Y'){