ソースを参照

Client memos - show only un-cancelled memos

Vijayakrishnan Krishnan 4 年 前
コミット
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');
     }