Merge branch 'ent-7885-12292-General-Report-no-ordena-como-debe' into 'develop'

Ent 7885 12292 general report no ordena como debe

See merge request artica/pandorafms!4378
This commit is contained in:
Daniel Rodriguez 2021-09-10 11:17:54 +00:00
commit 4a8461c2d3
1 changed files with 0 additions and 8 deletions

View File

@ -4334,14 +4334,6 @@ function reporting_html_general($table, $item, $pdf=0)
$table1->style[2] = 'text-align: center';
$table1->style[3] = 'text-align: center';
// Begin - Order by agent.
foreach ($item['data'] as $key => $row) {
$aux[$key] = $row['agent'];
}
array_multisort($aux, SORT_ASC, $item['data']);
// End - Order by agent.
foreach ($item['data'] as $row) {
if ($row['id_module_type'] == 6 || $row['id_module_type'] == 9 || $row['id_module_type'] == 18 || $row['id_module_type'] == 2) {
$row['formated_value'] = round($row['formated_value'], 0, PHP_ROUND_HALF_DOWN);