瀏覽代碼

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',