TT#3996 show (terminated) prefix for other_cli change

* the (terminated) prefix is shown for the 'other_cli'
      only if the 'other_cli' has
      the same contract_id as the 'own_cli'

Change-Id: I0b41c82164ff225001de1641bbe381544372473e
changes/71/8571/1
Kirill Solomko 9 years ago
parent 234fcaf49c
commit 66ea5df9ff

@ -203,7 +203,8 @@ sub process_cdr_item {
if ( (!($sub // $own_sub)) || (($sub // $own_sub)->status eq "terminated") ) {
$resource->{own_cli} .= " (terminated)";
}
if ($other_sub && $other_sub->status eq "terminated") {
if ($other_sub && $other_sub->status eq "terminated" &&
$own_sub && $own_sub->contract_id == $other_sub->contract_id) {
$resource->{other_cli} .= " (terminated)";
}

Loading…
Cancel
Save