|  | @@ -263,6 +263,7 @@ class InvoiceController extends DooController {
 | 
	
		
			
				|  |  |  		$this->render ( "/admin/invoiceExpress", $this->data );
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  	function invoiceAdd() {
 | 
	
		
			
				|  |  | +// 		include Doo::conf()->BASE_PATH.'diagnostic/debug.php';
 | 
	
		
			
				|  |  |  		session_start ();
 | 
	
		
			
				|  |  |  		/*Doo::loadModel ( 'invoice' );
 | 
	
		
			
				|  |  |  		$invoice = new invoice ();
 | 
	
	
		
			
				|  | @@ -6084,7 +6085,9 @@ class InvoiceController extends DooController {
 | 
	
		
			
				|  |  |  		
 | 
	
		
			
				|  |  |  		if ($status == 'UNRECORD')
 | 
	
		
			
				|  |  |  			$con .= ' and printStatus=1 and untreadStatus=0';
 | 
	
		
			
				|  |  | -		elseif ($status == 'RECORD')
 | 
	
		
			
				|  |  | +		elseif ($status == 'BAD'){
 | 
	
		
			
				|  |  | +			$con .= ' and badDebt=1 ';
 | 
	
		
			
				|  |  | +		}elseif ($status == 'RECORD')
 | 
	
		
			
				|  |  |  			$con .= ' and printStatus=1 and untreadStatus=3';
 | 
	
		
			
				|  |  |  		elseif ($status == 'BOUNCED')
 | 
	
		
			
				|  |  |  			$con .= ' and untreadStatus=2';
 |