From ce77fb4270dce750edbd9b0e286b2d8b1b6f290c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 30 Mar 2023 08:21:44 +1100 Subject: [PATCH] Fixes for upcoming filters --- app/Filters/InvoiceFilters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Filters/InvoiceFilters.php b/app/Filters/InvoiceFilters.php index c8e2f8216a36..2c8a62b073a1 100644 --- a/app/Filters/InvoiceFilters.php +++ b/app/Filters/InvoiceFilters.php @@ -131,7 +131,7 @@ class InvoiceFilters extends QueryFilters */ public function upcoming(): Builder { - return $this->builder + return $this->builder->whereIn('status_id', [Invoice::STATUS_PARTIAL, Invoice::STATUS_SENT]) ->where(function ($query) { $query->whereNull('due_date') ->orWhere('due_date', '>', now());