|
@@ 1500-1514 (lines=15) @@
|
| 1497 |
|
$currency_info = $this->common->get_currency_info(); |
| 1498 |
|
$search_arr = $this->session->userdata('user_cdrs_report_search'); |
| 1499 |
|
$show_seconds = (!empty($search_arr['search_in'])) ? $search_arr['search_in'] : 'minutes'; |
| 1500 |
|
foreach ($query->result_array() as $value) { |
| 1501 |
|
$duration = ($show_seconds == 'minutes') ? ($value['billseconds'] > 0 ) ? |
| 1502 |
|
floor($value['billseconds'] / 60) . ":" . sprintf("%02d", $value['billseconds'] % 60) : "00:00" : $value['billseconds']; |
| 1503 |
|
$customer_array[] = array( |
| 1504 |
|
$this->common->convert_GMT_to('', '', $value['callstart']), |
| 1505 |
|
$value['callerid'], |
| 1506 |
|
$value['callednum'], |
| 1507 |
|
filter_var($value['pattern'], FILTER_SANITIZE_NUMBER_INT), |
| 1508 |
|
$value['notes'], |
| 1509 |
|
$duration, |
| 1510 |
|
$this->common->calculate_currency_manually($currency_info, $value['debit'],false), |
| 1511 |
|
$value['disposition'], |
| 1512 |
|
$value['calltype'] |
| 1513 |
|
); |
| 1514 |
|
} |
| 1515 |
|
$duration = ($show_seconds == 'minutes') ? ($count_all['billseconds'] > 0 ) ? |
| 1516 |
|
floor($count_all['billseconds'] / 60) . ":" . sprintf("%02d", $count_all['billseconds'] % 60) : "00:00" : $count_all['billseconds']; |
| 1517 |
|
$customer_array[] = array("Grand Total", |
|
@@ 1896-1909 (lines=14) @@
|
| 1893 |
|
$currency_info = $this->common->get_currency_info(); |
| 1894 |
|
$search_arr = $this->session->userdata('user_provider_cdrs_report_search'); |
| 1895 |
|
$show_seconds = (!empty($search_arr['search_in'])) ? $search_arr['search_in'] : 'minutes'; |
| 1896 |
|
foreach ($query->result_array() as $value) { |
| 1897 |
|
$duration = ($show_seconds == 'minutes') ? ($value['billseconds'] > 0 ) ? |
| 1898 |
|
floor($value['billseconds'] / 60) . ":" . sprintf("%02d", $value['billseconds'] % 60) : "00:00" : $value['billseconds']; |
| 1899 |
|
$customer_array[] = array( |
| 1900 |
|
$this->common->convert_GMT_to('', '', $value['callstart']), |
| 1901 |
|
$value['callerid'], |
| 1902 |
|
$value['callednum'], |
| 1903 |
|
filter_var($value['pattern'], FILTER_SANITIZE_NUMBER_INT), |
| 1904 |
|
$duration, |
| 1905 |
|
$this->common->calculate_currency_manually($currency_info, $value['cost'],false), |
| 1906 |
|
$value['disposition'], |
| 1907 |
|
$value['calltype'] |
| 1908 |
|
); |
| 1909 |
|
} |
| 1910 |
|
$duration = ($show_seconds == 'minutes') ? ($count_all['billseconds'] > 0 ) ? |
| 1911 |
|
floor($count_all['billseconds'] / 60) . ":" . sprintf("%02d", $count_all['billseconds'] % 60) : "00:00" : $count_all['billseconds']; |
| 1912 |
|
$customer_array[] = array("Grand Total", |