1
0
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:
Hillel Coren 2017-02-27 11:13:32 +02:00
parent 04e4c47e2b
commit 0f13d7417d

View File

@ -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) {