billing app update support
This commit is contained in:
parent
fb1bc360a9
commit
60990a9e27
|
|
@ -58,8 +58,8 @@
|
||||||
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||||
|
|
||||||
|
|
||||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config.php")){
|
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billing/app_config.php")){
|
||||||
require_once "app/billings/functions.php";
|
require_once "app/billing/functions.php";
|
||||||
}
|
}
|
||||||
//define the process_xml_cdr function
|
//define the process_xml_cdr function
|
||||||
function process_xml_cdr($db, $leg, $xml_string) {
|
function process_xml_cdr($db, $leg, $xml_string) {
|
||||||
|
|
@ -216,7 +216,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//billing information
|
//billing information
|
||||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config.php")){
|
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billing/app_config.php")){
|
||||||
$db2 = new database;
|
$db2 = new database;
|
||||||
$lcr_currency = 'USD';
|
$lcr_currency = 'USD';
|
||||||
|
|
||||||
|
|
@ -529,4 +529,4 @@
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -295,7 +295,7 @@ else {
|
||||||
echo th_order_by('start_stamp', $text['label-start'], $order_by, $order);
|
echo th_order_by('start_stamp', $text['label-start'], $order_by, $order);
|
||||||
//echo th_order_by('end_stamp', 'End', $order_by, $order);
|
//echo th_order_by('end_stamp', 'End', $order_by, $order);
|
||||||
echo th_order_by('duration', $text['label-duration'], $order_by, $order);
|
echo th_order_by('duration', $text['label-duration'], $order_by, $order);
|
||||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config.php")){
|
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billing/app_config.php")){
|
||||||
// billing collumns
|
// billing collumns
|
||||||
echo "<th>".$text['label-price']."</th>\n";
|
echo "<th>".$text['label-price']."</th>\n";
|
||||||
}
|
}
|
||||||
|
|
@ -310,8 +310,8 @@ else {
|
||||||
echo "<td class='list_control_icon'> </td>\n";
|
echo "<td class='list_control_icon'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config.php")){
|
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billing/app_config.php")){
|
||||||
require_once "app/billings/functions.php";
|
require_once "app/billing/functions.php";
|
||||||
require_once "resources/classes/database.php";
|
require_once "resources/classes/database.php";
|
||||||
$database = new database;
|
$database = new database;
|
||||||
}
|
}
|
||||||
|
|
@ -438,7 +438,7 @@ else {
|
||||||
|
|
||||||
echo " <td valign='top' class='".$row_style[$c]."'>".gmdate("G:i:s", $seconds)."</td>\n";
|
echo " <td valign='top' class='".$row_style[$c]."'>".gmdate("G:i:s", $seconds)."</td>\n";
|
||||||
|
|
||||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config.php")){
|
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billing/app_config.php")){
|
||||||
|
|
||||||
$database->table = "v_xml_cdr";
|
$database->table = "v_xml_cdr";
|
||||||
$accountcode = (strlen($row["accountcode"])?$row["accountcode"]:$_SESSION[domain_name]);
|
$accountcode = (strlen($row["accountcode"])?$row["accountcode"]:$_SESSION[domain_name]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue