|  | @@ -526,16 +526,25 @@ class invoiceReceivables extends DooModel {
 | 
	
		
			
				|  |  |  	function getInvoiceReceivablesByConditionPage($limit = 0, $con = "", $desc = 'desc', $descField = 'irid') {
 | 
	
		
			
				|  |  |  		if (empty ( $limit ))
 | 
	
		
			
				|  |  |  			return array ();
 | 
	
		
			
				|  |  | +			
 | 
	
		
			
				|  |  | +// 		$sql = 'select group_concat(b.invoiceSerial) as invoiceSerial ,group_concat(b.iid) as invoiceId ,a.*,b.invoicePrice
 | 
	
		
			
				|  |  | +// 				from ' . $this->_table . ' as a left join CLD_invoice as b on
 | 
	
		
			
				|  |  | +// 				   find_in_set(b.iid,a.iidExtend) or a.iid=b.iid 
 | 
	
		
			
				|  |  | +// 				where ' . $con . ' group by a.irid ORDER BY  ' . $descField . ' ' . $desc . ' limit ' . $limit . '
 | 
	
		
			
				|  |  | +// 				';
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  | +		if(!empty($con)){
 | 
	
		
			
				|  |  | +			$con=' where '.$con;
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  | +		$sql='select * from '.$this->_table.' as a '.$con.' ORDER BY '.$descField.' '.$desc.' limit '.$limit;
 | 
	
		
			
				|  |  |  		
 | 
	
		
			
				|  |  | -		$sql = 'select group_concat(b.invoiceSerial) as invoiceSerial ,group_concat(b.iid) as invoiceId ,a.*,b.invoicePrice
 | 
	
		
			
				|  |  | -				from ' . $this->_table . ' as a left join CLD_invoice as b on
 | 
	
		
			
				|  |  | -				   find_in_set(b.iid,a.iidExtend) or a.iid=b.iid 
 | 
	
		
			
				|  |  | -				where ' . $con . ' group by a.irid ORDER BY  ' . $descField . ' ' . $desc . ' limit ' . $limit . '
 | 
	
		
			
				|  |  | -				';
 | 
	
		
			
				|  |  |  		
 | 
	
		
			
				|  |  |  		$query = Doo::db ()->query ( $sql );
 | 
	
		
			
				|  |  |  		$list = $query->fetchAll ();
 | 
	
		
			
				|  |  |  		
 | 
	
		
			
				|  |  | +		print_r($list);
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  |  		Doo::loadClass ( 'XDeode' );
 | 
	
		
			
				|  |  |  		$XDeode = new XDeode ( 5 );
 | 
	
		
			
				|  |  |  		Doo::loadModel ( 'invoiceROLog' );
 |