2012-04-02 Sergio Martin <sergio.martin@artica.es>
* operation/reporting/reporting_xml.php: Added xml export feature to the new report items of inventory and inventory changes git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5867 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
22d530fb69
commit
0af021c7b8
|
@ -1,3 +1,8 @@
|
||||||
|
2012-04-02 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* operation/reporting/reporting_xml.php: Added xml export
|
||||||
|
feature to the new report items of inventory and inventory changes
|
||||||
|
|
||||||
2012-04-02 Dario Rodriguez <dario.rodriguez@artica.es>
|
2012-04-02 Dario Rodriguez <dario.rodriguez@artica.es>
|
||||||
|
|
||||||
* godmode/menu.php: Delete reporting menu in godmode section.
|
* godmode/menu.php: Delete reporting menu in godmode section.
|
||||||
|
|
|
@ -619,6 +619,30 @@ foreach ($contents as $content) {
|
||||||
|
|
||||||
$data["title"] = __('MTTR');
|
$data["title"] = __('MTTR');
|
||||||
$data["objdata"] = $mttr;
|
$data["objdata"] = $mttr;
|
||||||
|
break;
|
||||||
|
case 'inventory':
|
||||||
|
$data["title"] = __('Inventory');
|
||||||
|
$data["objdata"]["inventory"] = array();
|
||||||
|
|
||||||
|
$es = json_decode($content['external_source'], true);
|
||||||
|
|
||||||
|
$id_agent = $es['id_agents'];
|
||||||
|
$module_name = $es['inventory_modules'];
|
||||||
|
$date = $es['date'];
|
||||||
|
|
||||||
|
$data["objdata"]["inventory"] = inventory_get_data((array)$id_agent,(array)$module_name,$date,'',false, 'array');
|
||||||
|
break;
|
||||||
|
case 'inventory_changes':
|
||||||
|
$data["title"] = __('Inventory changes');
|
||||||
|
$data["objdata"]["inventory_changes"] = array();
|
||||||
|
|
||||||
|
$es = json_decode($content['external_source'], true);
|
||||||
|
|
||||||
|
$id_agent = $es['id_agents'];
|
||||||
|
$module_name = $es['inventory_modules'];
|
||||||
|
|
||||||
|
$data["objdata"]["inventory_changes"] = inventory_get_changes($id_agent, $module_name, $report["datetime"] - $content['period'], $report["datetime"], 'array');
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
xml_array ($data);
|
xml_array ($data);
|
||||||
|
|
Loading…
Reference in New Issue