I was able to add new lines with custom reports on software tab.
This is how i did it
1. Add a new entry in
/usr/share/ocsinventory-reports/ocsreports/plugins/language/en_GB/en_GB.txt (or other language)
like 2130 Microsoft Office Professional Plus 2010
2. Modify
/usr/share/ocsinventory-reports/ocsreports/require/function_console.php
add 7 new entries similar with OCS_REPORT_NB_ERR ;
This is my example for office 2010
$multi_search
"OCS_REPORT_OFFICE2010" => array("FIELD" => 'SOFTWARES-NAME', "COMP" => 'like', "VALUE" => 'Microsoft Office Professional Plus 2010'),
$table
"OCS_REPORT_OFFICE2010" => "softwares",
$table_field
"OCS_REPORT_OFFICE2010" => "softwares",
$link
"OCS_REPORT_OFFICE2010" => array("PAGE" => 'ms_multi_search'),
$repart
"OCS_REPORT_OFFICE2010" => "SOFT",
$lbl_field
"OCS_REPORT_OFFICE2010" => $l->g(2130), (it contains the id from en_GB.txt new entry)
$sql_field
"OCS_REPORT_OFFICE2010" => array('SQL' => "select %s from %s where NAME like '%s'",
'ARG' => array('count(distinct hardware_id) c', $table["OCS_REPORT_OFFICE2010"], 'Microsoft Office Professional Plus 2010%')),
Logout and login to see the new changes