Browse Source

Client memos - show only un-cancelled memos

Vijayakrishnan Krishnan 4 năm trước cách đây
mục cha
commit
62f9f68380
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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');
     }