we do not try to convert rate if price is zero, this will speed up things
This commit is contained in:
parent
f8b93f774c
commit
dfd68d123a
|
|
@ -529,7 +529,7 @@ else {
|
||||||
unset($database->sql);
|
unset($database->sql);
|
||||||
unset($database->result);
|
unset($database->result);
|
||||||
|
|
||||||
$sell_price = $row['call_sell'];
|
$sell_price = strlen($row['call_sell'])?$row['call_sell']:0;
|
||||||
$lcr_direction = (strlen($row['direction'])?$row['direction']:"outbound");
|
$lcr_direction = (strlen($row['direction'])?$row['direction']:"outbound");
|
||||||
|
|
||||||
$xml_string = trim($row["xml"]);
|
$xml_string = trim($row["xml"]);
|
||||||
|
|
@ -567,7 +567,9 @@ else {
|
||||||
); //billed currency
|
); //billed currency
|
||||||
unset($database->sql);
|
unset($database->sql);
|
||||||
unset($database->result);
|
unset($database->result);
|
||||||
$price = currency_convert($sell_price, $billing_currency, $lcr_currency);
|
if ($sell_price){
|
||||||
|
$price = currency_convert($sell_price, $billing_currency, $lcr_currency);
|
||||||
|
}
|
||||||
echo " <td valign='top' class='".$row_style[$c]."'>".number_format($price,6)." $billing_currency</td>\n";
|
echo " <td valign='top' class='".$row_style[$c]."'>".number_format($price,6)." $billing_currency</td>\n";
|
||||||
}
|
}
|
||||||
if (permission_exists("xml_cdr_pdd")) {
|
if (permission_exists("xml_cdr_pdd")) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue