Explorar el Código

Client memos - show only un-cancelled memos

Vijayakrishnan Krishnan hace 4 años
padre
commit
62f9f68380
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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');
     }