Explorar el Código

Note supply-orders - don't show duplicates (in other section)

Vijayakrishnan hace 3 años
padre
commit
9e032d566b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/Http/Controllers/NoteController.php

+ 1 - 0
app/Http/Controllers/NoteController.php

@@ -63,6 +63,7 @@ class NoteController extends Controller
         // other open supplyOrders as of today
         $otherOpenSupplyOrders = SupplyOrder::where('client_id', $patient->id)
             ->where('is_cancelled', false)
+            ->where('note_id', '<>', $note->id)
             ->get();
 
         return view('app.patient.note.dashboard', compact('patient', 'note',