diff --git a/lib/NGCP/Panel/Controller/Reseller.pm b/lib/NGCP/Panel/Controller/Reseller.pm index df9a190a9f..4b5a77107e 100644 --- a/lib/NGCP/Panel/Controller/Reseller.pm +++ b/lib/NGCP/Panel/Controller/Reseller.pm @@ -183,7 +183,8 @@ sub reseller_customers :Chained('base') :PathPart('customers/ajax') :Args(0) { my ($self, $c) = @_; my $rs = $c->model('DB')->resultset('contracts')->search({ - 'contact.reseller_id' => $c->stash->{reseller}->first->id + 'contact.reseller_id' => $c->stash->{reseller}->first->id, + 'status' => { '!=' => 'terminated' }, }, { join => 'contact' });