mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 14:44:32 -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