|
@@ 152-155 (lines=4) @@
|
| 149 |
|
$str=$this->common->get_parent_info($did_info['parent_id'],$accountinfo['id']); |
| 150 |
|
$str=rtrim($str,","); |
| 151 |
|
$account_result=(array)$this->db->get_where('accounts',"id IN (".$str.")")->result_array(); |
| 152 |
|
foreach($account_result as $key=>$acc_row){ |
| 153 |
|
$acc_row['did_number']=$did_info['number']; |
| 154 |
|
$this->common->mail_to_users('email_remove_did', $acc_row); |
| 155 |
|
} |
| 156 |
|
} |
| 157 |
|
if($accountinfo['type'] == -1){ |
| 158 |
|
$update_array = array('parent_id' => 0, 'accountid' => 0, 'assign_date' => '0000-00-00 00:00:00', "charge_upto" => "0000-00-00 00:00:00","last_modified_date"=>gmdate("Y-m-d H:i:s"),'call_type'=>'-1','extensions'=>''); |
|
@@ 455-458 (lines=4) @@
|
| 452 |
|
$str=$this->common->get_parent_info($did_info['parent_id'],$accountinfo['id']); |
| 453 |
|
$str=rtrim($str,","); |
| 454 |
|
$account_result=(array)$this->db->get_where('accounts',"id IN (".$str.")")->result_array(); |
| 455 |
|
foreach($account_result as $key=>$acc_row){ |
| 456 |
|
$acc_row['did_number']=$did_info['number']; |
| 457 |
|
$this->common->mail_to_users('email_remove_did', $acc_row); |
| 458 |
|
} |
| 459 |
|
$reseller_ids=$this->common->get_subreseller_info($accountinfo['id']); |
| 460 |
|
$reseller_ids=rtrim($reseller_ids,","); |
| 461 |
|
$where="parent_id IN ($reseller_ids)"; |