Exemplo n.º 1
0
				debug_message($ct->getLastError());	
			}else{
				$ct->company_id = $invoice->company_id;
				if($ct->update() === FALSE){
					$error_msg .= "Error moving company transaction with new price";
					debug_message($ct->getLastError());	
				}else{
					goBack();
				}
			}	
		}	
	}
}	

$payment = new SI_Payment();
$payments = $payment->getForInvoice($invoice->id);
if($payments === FALSE){
	$error_msg .= "Error retreiving payment information!\n";
	debug_message($payment->getLastError());
}

$_REQUEST['detail'] = strtolower(substr($_REQUEST['detail'],0,1)) == "y" ? TRUE : FALSE;
$url = $_SERVER['PHP_SELF'].'?id='.$_REQUEST['id'].'&';

$title = "Edit Invoice";

require('header.php') ?>
<form name="invoice_edit" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" METHOD="POST">