From 1f2d608742753882604bd8e9b0115e5ca704e112 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 9 Dec 2023 11:03:31 +1100 Subject: [PATCH] fixes for upcoming --- app/Filters/InvoiceFilters.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Filters/InvoiceFilters.php b/app/Filters/InvoiceFilters.php index 08a6e5c6923f..f0ef5257bf32 100644 --- a/app/Filters/InvoiceFilters.php +++ b/app/Filters/InvoiceFilters.php @@ -153,10 +153,10 @@ class InvoiceFilters extends QueryFilters $query->whereNull('due_date') ->orWhere(function ($q) { - $q->where('due_date', '>=', now()->startOfDay()->subSecond())->where('partial', 0); + $q->where('due_date', '>=', now()->startOfDay()->subSecond())->where('partial', 0)->company(); }) ->orWhere(function ($q) { - $q->where('partial_due_date', '>=', now()->startOfDay()->subSecond())->where('partial', '>', 0); + $q->where('partial_due_date', '>=', now()->startOfDay()->subSecond())->where('partial', '>', 0)->company(); }); })