Parcourir la source

Don't show rmReason where isRemoved

Vijayakrishnan il y a 3 ans
Parent
commit
29a287305e
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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');
     }