Explorar el Código

Don't show zero value bills in processing-bills

Vijayakrishnan hace 3 años
padre
commit
8b9d5c2a80
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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);