$_POST['bill_name'], 'bill_type' => $_POST['bill_type'], 'bill_cdr' => $bill_cdr, 'bill_day' => $_POST['bill_day'], 'bill_quota' => $bill_quota, 'bill_custid' => $_POST['bill_custid'], 'bill_ref' => $_POST['bill_ref'], 'bill_notes' => $_POST['bill_notes'], 'rate_95th_in' => 0, 'rate_95th_out' => 0, 'rate_95th' => 0, 'dir_95th' => 'in', 'total_data' => 0, 'total_data_in' => 0, 'total_data_out' => 0, 'rate_average' => 0, 'rate_average_in' => 0, 'rate_average_out' => 0, 'bill_last_calc' => array('NOW()'), 'bill_autoadded' => 0, ); $bill_id = dbInsert($insert, 'bills'); if (is_numeric($bill_id) && is_numeric($_POST['port_id'])) { dbInsert(array('bill_id' => $bill_id, 'port_id' => $_POST['port_id']), 'bill_ports'); } header('Location: ' . generate_url(array('page' => 'bill', 'bill_id' => $bill_id, 'view' => 'edit'))); exit(); } $pagetitle[] = 'Billing'; echo ""; include 'includes/modal/new_bill.inc.php'; ?>
Billing name Type Allowed Inbound Outbound Total 95th Percentile Overusage Predicted