Sfoglia il codice sorgente

Don't show rmReason where isRemoved

Vijayakrishnan 3 anni fa
parent
commit
29a287305e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      app/Models/Client.php

+ 1 - 0
app/Models/Client.php

@@ -687,6 +687,7 @@ class Client extends Model
     {
         return $this->hasMany(ClientCmRmReason::class, 'client_id', 'id')
             ->where('cm_or_rm', 'RM')
+            ->where('is_removed', false)
             ->orderBy('position_index', 'ASC')
             ->orderBy('code', 'ASC');
     }