unknown 4 years ago
parent
commit
cef9d82a9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/PracticeManagementController.php

+ 1 - 1
app/Http/Controllers/PracticeManagementController.php

@@ -988,7 +988,7 @@ class PracticeManagementController extends Controller
             }
             }
         }
         }
 
 
-        $patientsQuery->where('notes_total', '>', 0);
+        $patientsQuery->whereRaw('(SELECT COUNT(*) FROM note where note.client_id = client.id) > 0');
 
 
         $patientsQuery->orderBy('notes_without_claiming_closed', 'DESC');
         $patientsQuery->orderBy('notes_without_claiming_closed', 'DESC');