Преглед изворни кода

Don't show rmReason where isRemoved

Vijayakrishnan пре 3 година
родитељ
комит
29a287305e
1 измењених фајлова са 1 додато и 0 уклоњено
  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');
     }