mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix quote reminders - skip converted quotes (#2819)
Signed-off-by: Kristián Feldsam <feldsam@gmail.com>
This commit is contained in:
parent
2e3d79a700
commit
ab739ae358
@ -1226,6 +1226,7 @@ class InvoiceRepository extends BaseRepository
|
||||
->whereAccountId($account->id)
|
||||
->where('balance', '>', 0)
|
||||
->where('is_recurring', '=', false)
|
||||
->whereNull('quote_invoice_id') // skip converted quotes
|
||||
->whereIsPublic(true)
|
||||
->whereRaw('('.$sql.')')
|
||||
->get();
|
||||
@ -1261,6 +1262,7 @@ class InvoiceRepository extends BaseRepository
|
||||
->whereAccountId($account->id)
|
||||
->where('balance', '>', 0)
|
||||
->where('is_recurring', '=', false)
|
||||
->whereNull('quote_invoice_id') // skip converted quotes
|
||||
->whereIsPublic(true)
|
||||
->where('last_sent_date', '<', $lastSentDate);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user