Only send reminders to sent invoices

This commit is contained in:
Hillel Coren 2017-02-02 08:17:05 +02:00
parent 1737af10c4
commit ef46bb0050

View File

@ -953,6 +953,7 @@ class InvoiceRepository extends BaseRepository
->whereAccountId($account->id)
->where('balance', '>', 0)
->where('is_recurring', '=', false)
->whereIsPublic(true)
->whereRaw('('.$sql.')')
->get();