mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-01 20:17:35 -04:00 
			
		
		
		
	only send statements with a balance greater than zero
This commit is contained in:
		
							parent
							
								
									310d14fd9c
								
							
						
					
					
						commit
						b66272c974
					
				| @ -36,7 +36,7 @@ class EmailStatementService | ||||
| 
 | ||||
|         //Email only the selected clients
 | ||||
|         if (count($this->scheduler->parameters['clients']) >= 1) { | ||||
|             $query->whereIn('id', $this->transformKeys($this->scheduler->parameters['clients'])); | ||||
|             $query->whereIn('id', $this->transformKeys($this->scheduler->parameters['clients']))->where('balance', '>', 0); | ||||
|         } | ||||
|       | ||||
|         $query->cursor() | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user