@@ 1184-1195 (lines=12) @@ | ||
1181 | "Connect Charge", |
|
1182 | "Included Seconds" |
|
1183 | ); |
|
1184 | if ($query->num_rows() > 0) |
|
1185 | { |
|
1186 | foreach($query->result_array() as $row) |
|
1187 | { |
|
1188 | $inbound_array[] = array( |
|
1189 | $row['pattern'] = $this->common->get_only_numeric_val("", "", $row["pattern"]) , |
|
1190 | $row['comment'], |
|
1191 | $row['inc'], |
|
1192 | $this->common_model->calculate_currency($row['cost'], '', '', '', false) , |
|
1193 | $row['connectcost'], |
|
1194 | $row['includedseconds'] |
|
1195 | ); |
|
1196 | } |
|
1197 | } |
|
1198 | ||
@@ 1301-1316 (lines=16) @@ | ||
1298 | "Increment", |
|
1299 | "Precedence" |
|
1300 | ); |
|
1301 | if ($query->num_rows() > 0) |
|
1302 | { |
|
1303 | foreach($query->result_array() as $row) |
|
1304 | { |
|
1305 | $customer_array[] = array( |
|
1306 | $row['pattern'] = $this->common->get_only_numeric_val("", "", $row["pattern"]) , |
|
1307 | $row['comment'], |
|
1308 | $row['connectcost'], |
|
1309 | $row['includedseconds'], |
|
1310 | $this->common_model->calculate_currency($row['cost']) , |
|
1311 | $row['inc'], |
|
1312 | $row['precedence'] |
|
1313 | ); |
|
1314 | } |
|
1315 | } |
|
1316 | ||
1317 | $this->load->helper('csv'); |
|
1318 | array_to_csv($customer_array, 'My_Own_Rate_' . date("Y-m-d") . '.csv'); |
|
1319 | exit; |