Эх сурвалжийг харах

Client memos - show only un-cancelled memos

Vijayakrishnan Krishnan 4 жил өмнө
parent
commit
62f9f68380
1 өөрчлөгдсөн 1 нэмэгдсэн , 0 устгасан
  1. 1 0
      app/Models/Client.php

+ 1 - 0
app/Models/Client.php

@@ -85,6 +85,7 @@ class Client extends Model
 
     public function memos() {
         return $this->hasMany(ClientMemo::class, 'client_id', 'id')
+            ->where('is_cancelled', false)
             ->orderBy('created_at', 'desc');
     }