Explorar el Código

fixed billing report

= hace 3 años
padre
commit
e6c53a3d03
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      app/Http/Controllers/PracticeManagementController.php

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

@@ -99,7 +99,7 @@ class PracticeManagementController extends Controller
                     return $noteQuery->has('claims', '=', 0);
                 })->whereHas('client', function($clientQuery){
                     return $clientQuery->where('client_engagement_status_category','<>' ,'DUMMY');
-                })->paginate(50);
+                })->orderBy('effective_date_est', 'desc')->paginate(50);
             }else{
                 $rows =  BillingReport::whereHas('note', function($noteQuery) use ($claimStatus){
                     return $noteQuery->whereHas('claims', function($claimQuery) use ($claimStatus) {
@@ -107,12 +107,12 @@ class PracticeManagementController extends Controller
                     });
                 })->whereHas('client', function($clientQuery){
                     return $clientQuery->where('client_engagement_status_category','<>' ,'DUMMY');
-                })->paginate(50);
+                })->orderBy('effective_date_est', 'desc')->paginate(50);
             }
         }else {
             $rows =  BillingReport::whereHas('client', function($clientQuery){
                 return $clientQuery->where('client_engagement_status_category','<>' ,'DUMMY');
-            })->paginate(50);    
+            })->orderBy('effective_date_est', 'desc')->paginate(50);    
         }
 
         $claimStatuses = DB::select('SELECT distinct status FROM claim ORDER BY status DESC');