Преглед на файлове

Don't show zero value bills in processing-bills

Vijayakrishnan преди 3 години
родител
ревизия
8b9d5c2a80
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      app/Http/Controllers/PracticeManagementController.php

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

@@ -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);