mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:54:41 -04:00
Add invoice w/o due date in dashboard
This commit is contained in:
parent
5f73fed914
commit
3a4a8f3aa6
@ -337,7 +337,8 @@ class DashboardRepository
|
|||||||
->where('invoices.is_public', '=', true)
|
->where('invoices.is_public', '=', true)
|
||||||
->where('contacts.is_primary', '=', true)
|
->where('contacts.is_primary', '=', true)
|
||||||
->where(function($query) {
|
->where(function($query) {
|
||||||
$query->where(DB::raw("coalesce(invoices.partial_due_date, invoices.due_date)"), '>=', date('Y-m-d'));
|
$query->where(DB::raw("coalesce(invoices.partial_due_date, invoices.due_date)"), '>=', date('Y-m-d'))
|
||||||
|
->orWhereNull('invoices.due_date');
|
||||||
})
|
})
|
||||||
->orderBy('invoices.due_date', 'asc');
|
->orderBy('invoices.due_date', 'asc');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user