mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Show invoices w/o due date in upcoming list on dashboard
This commit is contained in:
parent
04e4c47e2b
commit
0f13d7417d
@ -336,7 +336,10 @@ class DashboardRepository
|
||||
->where('invoices.is_deleted', '=', false)
|
||||
->where('invoices.is_public', '=', true)
|
||||
->where('contacts.is_primary', '=', true)
|
||||
->where('invoices.due_date', '>=', date('Y-m-d'))
|
||||
->where(function($query) {
|
||||
$query->where('invoices.due_date', '>=', date('Y-m-d'))
|
||||
->orWhereNull('invoices.due_date');
|
||||
})
|
||||
->orderBy('invoices.due_date', 'asc');
|
||||
|
||||
if (! $viewAll) {
|
||||
|
Loading…
Reference in New Issue
Block a user