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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue