|
@@ 826-835 (lines=10) @@
|
| 823 |
|
$json_data = $paging_data["json_paging"]; |
| 824 |
|
$query = $this->rates_model->get_origination_rate_list_for_user(true, $paging_data["paging"]["start"], $paging_data["paging"]["page_no"]); |
| 825 |
|
$grid_fields = json_decode($this->rates_form->build_origination_rate_list_for_user()); |
| 826 |
|
foreach($query->result_array() as $key => $value) |
| 827 |
|
{ |
| 828 |
|
$json_data['rows'][] = array( |
| 829 |
|
'cell' => array( |
| 830 |
|
$this->common->get_only_numeric_val("", "", $value["pattern"]) , |
| 831 |
|
$value['comment'], |
| 832 |
|
$value['inc'], |
| 833 |
|
$this->common_model->calculate_currency(($value['cost'] + ($value['cost'] * $markup) / 100) , '', '', '', true) , |
| 834 |
|
$this->common_model->calculate_currency($value['connectcost'], '', '', '', true) , |
| 835 |
|
$value['includedseconds'] |
| 836 |
|
) |
| 837 |
|
); |
| 838 |
|
} |
|
@@ 1240-1250 (lines=11) @@
|
| 1237 |
|
$json_data = $paging_data["json_paging"]; |
| 1238 |
|
$query = $this->rates_model->getreseller_rates_list(true, $paging_data["paging"]["start"], $paging_data["paging"]["page_no"]); |
| 1239 |
|
$grid_fields = json_decode($this->rates_form->build_rates_list_for_reseller()); |
| 1240 |
|
foreach($query->result_array() as $key => $value) |
| 1241 |
|
{ |
| 1242 |
|
$json_data['rows'][] = array( |
| 1243 |
|
'cell' => array( |
| 1244 |
|
$this->common->get_only_numeric_val("", "", $value["pattern"]) , |
| 1245 |
|
$value['comment'], |
| 1246 |
|
$this->common_model->calculate_currency($value['connectcost'], '', '', 'true', true) , |
| 1247 |
|
$value['includedseconds'], |
| 1248 |
|
$this->common_model->calculate_currency(($value['cost'] + ($value['cost'] * $markup) / 100) , '', '', 'true', true) , |
| 1249 |
|
$value['inc'], |
| 1250 |
|
$value['precedence'], |
| 1251 |
|
) |
| 1252 |
|
); |
| 1253 |
|
} |