Explorar o código

updated cellular device matrix

logicpowerhouse %!s(int64=4) %!d(string=hai) anos
pai
achega
6e6368a3fc
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/Http/Controllers/PracticeManagementController.php

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

@@ -408,9 +408,9 @@ class PracticeManagementController extends Controller
         $bills = [];
         if($targetPro){
             $expectedForHcp = DB::select(DB::raw("SELECT coalesce(SUM(hcp_expected_payment_amount),0) as expected_pay FROM bill WHERE hcp_pro_id = :targetProID  AND is_signed_by_hcp IS TRUE AND is_cancelled = false"), ['targetProID' => $targetPro->id])[0]->expected_pay;
-            $bills = Bill::where('hcp_pro_id', $targetPro->id)->orderBy('created_at', 'desc')->paginate();
+            $bills = Bill::where('hcp_pro_id', $targetPro->id)->orderBy('created_at', 'desc')->paginate(500);
         }else{
-            $bills = Bill::orderBy('created_at', 'desc')->paginate();
+            $bills = Bill::orderBy('created_at', 'desc')->paginate(500);
         }
         return view('app.practice-management.hcp-bill-matrix', compact('bills', 'allPros', 'expectedForHcp', 'targetPro'));
     }