mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 04:07:32 -05: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
 | 
					        //Email only the selected clients
 | 
				
			||||||
        if (count($this->scheduler->parameters['clients']) >= 1) {
 | 
					        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()
 | 
					        $query->cursor()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user