From f06886fcb4d49d1d372b0d8a89c3c832ec629675 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 5 Jan 2023 22:18:16 +1100 Subject: [PATCH] Filters for quotes --- app/Filters/QuoteFilters.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Filters/QuoteFilters.php b/app/Filters/QuoteFilters.php index e906f291d25b..082fe692e9b6 100644 --- a/app/Filters/QuoteFilters.php +++ b/app/Filters/QuoteFilters.php @@ -86,6 +86,7 @@ class QuoteFilters extends QueryFilters if (in_array('expired', $status_parameters)) { $this->builder->where('status_id', Quote::STATUS_SENT) + ->whereNotNull('due_date') ->where('due_date', '<=', now()->toDateString()); }