Пример #1
0
}

$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());
}

$invoice = new SI_Invoice();
$invoices = $invoice->getForCompany($company->id);
if($invoices === FALSE){
	$error_msg .= "Could not retrieve Invoice list!\n";
	debug_message($invoice->getLastError());
}

$title = $company->name." Invoices";
if($loggedin_user->hasRight('admin')){
	$update_url = "company.php?mode=edit&id=$id";
}else{
	$update_url = "company_profile.php?id=$id";
}
require('header.php'); ?>
<TABLE BORDER="0" CELLSPACING="4" CELLPADDING="0">
<TR>
	<TD VALIGN="top" ALIGN="LEFT" COLSPAN="2">