MT#13701 Prevent resurrection of the terminated subscribers

Change-Id: I4198ec2d9e5c46ff71e70c5ad7b0f906429f34fc
changes/22/2022/1
Irina Peshinskaya 10 years ago
parent 01a6f3de75
commit 61cb34584d

@ -116,7 +116,8 @@ sub recursively_lock_contract {
}
# first, change all voip subscribers, in case there are any
for my $subscriber($contract->voip_subscribers->all) {
# we dont need to set to active, or any other level, already terminated subscribers
for my $subscriber($contract->voip_subscribers->search_rs({ 'me.status' => { '!=' => 'terminated' } })->all) {
$subscriber->update({ status => $status });
if($status eq 'terminated') {
NGCP::Panel::Utils::Subscriber::terminate(

Loading…
Cancel
Save