You are not logged in.
Pages: 1
Hi to all of you,
I like a lot GLPI and I always try to use its features every time I have the chance. the last was after my boss asked me about a report of the printer expenses. The first solution I did was quite straightforward , create a access database with the GLPI tables link to it and then create the following query
SELECT Year([date]) AS [YEAR], Month([date]) AS [MONTH], glpi_type_printers.name AS TYPE, glpi_dropdown_model_printers.name AS MODEL, glpi_dropdown_manufacturer.name AS MANUFACTER, (glpi_tracking.cost_material+glpi_tracking.cost_fixed+glpi_tracking.cost_time) AS COST, glpi_printers.name AS PRINTER, glpi_printers.serial
FROM (((glpi_tracking INNER JOIN glpi_printers ON glpi_tracking.computer = glpi_printers.ID) INNER JOIN glpi_type_printers ON glpi_printers.type = glpi_type_printers.ID) INNER JOIN glpi_dropdown_model_printers ON glpi_printers.model = glpi_dropdown_model_printers.ID) INNER JOIN glpi_dropdown_manufacturer ON glpi_printers.FK_glpi_enterprise = glpi_dropdown_manufacturer.ID
GROUP BY Year([date]), Month([date]), glpi_type_printers.name, glpi_dropdown_model_printers.name, glpi_dropdown_manufacturer.name, glpi_printers.name, glpi_printers.serial, glpi_tracking.cost_time, glpi_tracking.cost_fixed, glpi_tracking.cost_material;
After that from Excel sheet I just read the query and use the pivottable-pivotchart report.
that's all!
Now I was thinking how to integrate this report in GLPI itself. What a pity doesnt have any integrated reporting tool. Is there any plan to add it one? I was checking in sourceforge but I didnt find any good enough...
best regards,
Jose
Offline
There is a minimal reporting tool : the "reports" plugin.
To add a new report, simply copy one and change the SQL request.
The "simpleReport" function will do the main job.
+
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
Hi!
I have my 'plugins' folder empty... should I use the reports in 'front' folder??
thanks!
Last edited by YaKs (2009-03-03 09:55:02)
Offline
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
remi, any chance to get this plugin to work under 0.72, as I get the "Non-existent function(s): plugin_reports_check_config" message with the latest SVN, but probably you haven't worked on that one the last weeks due to other priorities.
RedHat Enterprise Linux 5 ES 32Bit x86
PHP 5.1.6 -- Apache 2.2.3
MySQL 5.0.45 -- GLPI 0.72.4 -- OCS 1.32 -- Home brewed MS CM import script
Offline
Yes, there is a chance.
Just need someone to do the job.
But we have some time to do this, 0.72 doesn't exists yet.
+
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
0.72 doesn't exists yet.
+
You are right, just thought, as we are coming closer to the release date on the roadmap, that some testing wouldn't harm
Last edited by MHI (2009-03-05 00:33:20)
RedHat Enterprise Linux 5 ES 32Bit x86
PHP 5.1.6 -- Apache 2.2.3
MySQL 5.0.45 -- GLPI 0.72.4 -- OCS 1.32 -- Home brewed MS CM import script
Offline
the plugin will work when we'll have enough time to port it...
I hope before the release of glpi 0.72...
Offline
Pages: 1