Filtered out quotes from reminder emails

This commit is contained in:
Hillel Coren 2016-02-03 10:08:12 +02:00
parent 65d3667600
commit 37ffd01463

View File

@ -673,6 +673,8 @@ class InvoiceRepository extends BaseRepository
$sql = implode(' OR ', $dates);
$invoices = Invoice::whereAccountId($account->id)
->where('balance', '>', 0)
->where('is_quote', '=', false)
->where('is_recurring', '=', false)
->whereRaw('('.$sql.')')
->get();