Преглед изворни кода

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

Vijayakrishnan пре 3 година
родитељ
комит
9e032d566b
1 измењених фајлова са 1 додато и 0 уклоњено
  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',