Remove xml and json from the select list as its horribly inefficient. Move accountcode outside of billing as that may be used by others using the account code.
This commit is contained in:
parent
b8f9b423c7
commit
4a55588898
|
|
@ -236,6 +236,7 @@ else {
|
|||
}
|
||||
}
|
||||
unset($prep_statement, $result);
|
||||
|
||||
//limit the number of results
|
||||
if ($num_rows > $_SESSION['cdr']['limit']['numeric']) {
|
||||
$num_rows = $_SESSION['cdr']['limit']['numeric'];
|
||||
|
|
@ -268,11 +269,9 @@ else {
|
|||
$sql .= "caller_id_name, ";
|
||||
$sql .= "caller_id_number, ";
|
||||
$sql .= "destination_number, ";
|
||||
$sql .= "accountcode, ";
|
||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billing/app_config.php")){
|
||||
$sql .= "accountcode, ";
|
||||
$sql .= "call_sell, ";
|
||||
$sql .= "xml, ";
|
||||
$sql .= "json, ";
|
||||
}
|
||||
if (permission_exists("xml_cdr_pdd")) {
|
||||
$sql .= "pdd_ms, ";
|
||||
|
|
|
|||
Loading…
Reference in New Issue