Kaynağa Gözat

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

Vijayakrishnan 3 yıl önce
ebeveyn
işleme
9e032d566b
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  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',