diff --git a/app/Filters/QuoteFilters.php b/app/Filters/QuoteFilters.php index a545f76fdd..116e3ca537 100644 --- a/app/Filters/QuoteFilters.php +++ b/app/Filters/QuoteFilters.php @@ -86,12 +86,12 @@ class QuoteFilters extends QueryFilters if (in_array('expired', $status_parameters)) { $this->builder->orWhere('status_id', Quote::STATUS_SENT) - ->where('due_date', '>=', now()->toDateString()); + ->where('due_date', '<=', now()->toDateString()); } if (in_array('upcoming', $status_parameters)) { $this->builder->orWhere('status_id', Quote::STATUS_SENT) - ->where('due_date', '<=', now()->toDateString()) + ->where('due_date', '>=', now()->toDateString()) ->orderBy('due_date', 'DESC'); }