diff --git a/html/pages/bill.inc.php b/html/pages/bill.inc.php
index 3d9033091..5e05167b9 100644
--- a/html/pages/bill.inc.php
+++ b/html/pages/bill.inc.php
@@ -155,9 +155,9 @@ if (bill_permitted($bill_id))
$percent = round(($total_data) / $bill_data['bill_quota'] * 100, 2);
$unit = "MB";
$total_data = round($total_data, 2);
- echo("Billing Period from " . $fromtext . " to " . $totext . "
-
Transferred ".format_byes_billing($total_data)." of ".format_bytes_billing($bill_data['bill_quota'])." (".$percent."%)
-
Average rate " . formatRates($rate_average));
+ echo("Billing Period from " . $fromtext . " to " . $totext);
+ echo("
Transferred ".format_bytes_billing($total_data)." of ".format_bytes_billing($bill_data['bill_quota'])." (".$percent."%)");
+ echo("
Average rate " . formatRates($rate_average));
$background = get_percentage_colours($percent);
diff --git a/html/pages/bill/actions.inc.php b/html/pages/bill/actions.inc.php
index 22eafcc20..70f22b9f7 100644
--- a/html/pages/bill/actions.inc.php
+++ b/html/pages/bill/actions.inc.php
@@ -30,8 +30,8 @@ if ($_POST['action'] == "delete_bill_port")
if ($_POST['action'] == "update_bill")
{
- if (dbUpdate(array('bill_name' => $_POST['bill_name'], 'bill_day' => $_POST['bill_day'], 'bill_gb' => $_POST['bill_gb'],
- 'bill_cdr' => $_POST['bill_cdr'], 'bill_type' => $_POST['bill_type']), 'bills', '`bill_id` = ?', array($bill_id)))
+ if (dbUpdate(array('bill_name' => $_POST['bill_name'], 'bill_day' => $_POST['bill_day'], 'bill_quota' => ($_POST['bill_quota'] * $config['billing']['base'] * $config['billing']['base'] * $config['billing']['base']),
+ 'bill_cdr' => ($_POST['bill_cdr']*1000), 'bill_type' => $_POST['bill_type']), 'bills', '`bill_id` = ?', array($bill_id)))
{
print_message("Bill Properties Updated");
}
diff --git a/html/pages/bill/edit.inc.php b/html/pages/bill/edit.inc.php
index f9db2779e..fed8c6b98 100644
--- a/html/pages/bill/edit.inc.php
+++ b/html/pages/bill/edit.inc.php
@@ -22,12 +22,12 @@ echo("