|
@@ -408,9 +408,9 @@ class PracticeManagementController extends Controller
|
|
$bills = [];
|
|
$bills = [];
|
|
if($targetPro){
|
|
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;
|
|
$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(500);
|
|
|
|
|
|
+ $bills = Bill::where('hcp_pro_id', $targetPro->id)->orderBy('created_at', 'desc')->paginate(100);
|
|
}else{
|
|
}else{
|
|
- $bills = Bill::orderBy('created_at', 'desc')->paginate(500);
|
|
|
|
|
|
+ $bills = Bill::orderBy('created_at', 'desc')->paginate(100);
|
|
}
|
|
}
|
|
return view('app.practice-management.hcp-bill-matrix', compact('bills', 'allPros', 'expectedForHcp', 'targetPro'));
|
|
return view('app.practice-management.hcp-bill-matrix', compact('bills', 'allPros', 'expectedForHcp', 'targetPro'));
|
|
}
|
|
}
|