mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for quote filters
This commit is contained in:
parent
c5de8de343
commit
63d5b49073
@ -85,12 +85,12 @@ class QuoteFilters extends QueryFilters
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (in_array('expired', $status_parameters)) {
|
if (in_array('expired', $status_parameters)) {
|
||||||
$this->builder->orWhere('status_id', Quote::STATUS_SENT)
|
$this->builder->where('status_id', Quote::STATUS_SENT)
|
||||||
->where('due_date', '<=', now()->toDateString());
|
->where('due_date', '<=', now()->toDateString());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array('upcoming', $status_parameters)) {
|
if (in_array('upcoming', $status_parameters)) {
|
||||||
$this->builder->orWhere('status_id', Quote::STATUS_SENT)
|
$this->builder->where('status_id', Quote::STATUS_SENT)
|
||||||
->where('due_date', '>=', now()->toDateString())
|
->where('due_date', '>=', now()->toDateString())
|
||||||
->orderBy('due_date', 'DESC');
|
->orderBy('due_date', 'DESC');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user