Kaynağa Gözat

fixed billing report

= 3 yıl önce
ebeveyn
işleme
ed625a67a6

+ 4 - 3
app/Http/Controllers/PracticeManagementController.php

@@ -91,6 +91,9 @@ class PracticeManagementController extends Controller
         $claimStatus = $request->get('status');
         
         $rows = BillingReport::paginate(50);
+        $rows = $rows->whereHas('client', function($clientQuery){
+            return $clientQuery->where('client_engagement_status_category','<>' ,'DUMMY');
+        });
         if($claimStatus){
             if($claimStatus == 'NO_CLAIMS'){
                 $rows = BillingReport::whereHas('note', function($noteQuery) use ($claimStatus){
@@ -106,9 +109,7 @@ class PracticeManagementController extends Controller
             
         }
 
-        $rows->whereHas('client', function($clientQuery){
-            return $clientQuery->where('client_engagement_status_category','<>' ,'DUMMY');
-        });
+       
         
 
         $claimStatuses = DB::select('SELECT distinct status FROM claim ORDER BY status DESC');