From da9aebd642626d9fc20d50eee2307daca74147d0 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 10 Sep 2021 22:56:23 +1000 Subject: [PATCH] Minor fixes for queries --- app/Http/Controllers/BaseController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/BaseController.php b/app/Http/Controllers/BaseController.php index ebbcc1c3ee..f2bfe9d012 100644 --- a/app/Http/Controllers/BaseController.php +++ b/app/Http/Controllers/BaseController.php @@ -400,7 +400,7 @@ class BaseController extends Controller }, 'company.tax_rates'=> function ($query) use ($created_at, $user) { - $query->where('created_at', '>=', $created_at); + $query->whereNotNull('created_at'); }, 'company.activities'=> function ($query) use($user) {