|
@@ -699,6 +699,7 @@ class PracticeManagementController extends Controller
|
|
|
if(!$request->input('t') || $request->input('t') === 'hcp') {
|
|
|
$bills = $bills
|
|
|
->where('has_hcp_been_paid', false)
|
|
|
+ ->where('hcp_expected_payment_amount', '>', 0)
|
|
|
->where('is_signed_by_hcp', true);
|
|
|
if ($targetPro) {
|
|
|
$bills = $bills->where('hcp_pro_id', $targetPro->id);
|
|
@@ -710,6 +711,7 @@ class PracticeManagementController extends Controller
|
|
|
else if($request->input('t') === 'na') {
|
|
|
$bills = $bills
|
|
|
->where('has_generic_pro_been_paid', false)
|
|
|
+ ->where('generic_pro_expected_payment_amount', '>', 0)
|
|
|
->where('is_signed_by_generic_pro', true);
|
|
|
if ($targetPro) {
|
|
|
$bills = $bills->where('generic_pro_id', $targetPro->id);
|