Only send reminders to sent invoices

This commit is contained in:
Hillel Coren 2017-02-02 08:16:53 +02:00
parent c26ad690a1
commit 90bce544e9

View File

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