From ef46bb00505b82d82bd8792c0f910a245ab12ddd Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 2 Feb 2017 08:17:05 +0200 Subject: [PATCH] Only send reminders to sent invoices --- app/Ninja/Repositories/InvoiceRepository.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Ninja/Repositories/InvoiceRepository.php b/app/Ninja/Repositories/InvoiceRepository.php index b7701d90fa97..67f457e2255c 100644 --- a/app/Ninja/Repositories/InvoiceRepository.php +++ b/app/Ninja/Repositories/InvoiceRepository.php @@ -953,6 +953,7 @@ class InvoiceRepository extends BaseRepository ->whereAccountId($account->id) ->where('balance', '>', 0) ->where('is_recurring', '=', false) + ->whereIsPublic(true) ->whereRaw('('.$sql.')') ->get();