mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Filters for overdue need tuning
This commit is contained in:
parent
7c36ae0bdd
commit
6ad7e29944
@ -69,6 +69,7 @@ class InvoiceFilters extends QueryFilters
|
|||||||
if (in_array('overdue', $status_parameters)) {
|
if (in_array('overdue', $status_parameters)) {
|
||||||
$query->orWhereIn('status_id', [Invoice::STATUS_SENT, Invoice::STATUS_PARTIAL])
|
$query->orWhereIn('status_id', [Invoice::STATUS_SENT, Invoice::STATUS_PARTIAL])
|
||||||
->where('due_date', '<', Carbon::now())
|
->where('due_date', '<', Carbon::now())
|
||||||
|
->orWhere('due_date', null)
|
||||||
->orWhere('partial_due_date', '<', Carbon::now());
|
->orWhere('partial_due_date', '<', Carbon::now());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user