Quellcode durchsuchen

added orderby on claims summary

= vor 4 Jahren
Ursprung
Commit
5999c9ed38

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

@@ -884,7 +884,7 @@ class PracticeManagementController extends Controller
                 DB::raw("(SELECT COUNT(*) FROM note where note.client_id = client.id) as notes_total"),
                 DB::raw("(SELECT COUNT(*) FROM note where note.client_id = client.id AND is_bill_closed IS NOT true) as notes_without_billing_closed"),
                 DB::raw("(SELECT COUNT(*) FROM note where note.client_id = client.id AND is_claim_closed IS NOT true) as notes_without_claiming_closed")
-            )->orderBy('is_part_b_primary', 'desc')->orderBy('notes_without_claiming_closed', 'desc');
+            )->orderBy('is_part_b_primary', 'asc')->orderBy('notes_without_claiming_closed', 'desc');
 
             if($proUid){
                 $mcpPro = Pro::where('uid', $proUid)->first();

+ 2 - 0
resources/views/app/practice-management/patient-claim-summary.blade.php

@@ -102,6 +102,7 @@
                     <tr>
                         <th>Patient</th>
                         <th>MCP</th>
+                        <th>Medicare Advantage Plan</th>
                         <th>#Notes without Billing Closed</th>
                         <th>#Notes without Claiming Closed</th>
                         <th>#Notes Total</th>
@@ -121,6 +122,7 @@
                                 </a>
                             </td>
                             <td>{{$patient->mcp}}</td>
+                            <td>{{$patient->medicare_advantage_plan}}</td>
                             <td>{{$patient->notes_without_billing_closed}}</td>
                             <td>{{$patient->notes_without_claiming_closed}}</td>
                             <td>{{$patient->notes_total}}</td>