Ce patch rajoute les contrats dans le raport `transferreditems`.
Si un des dev du plugin report peut l'intégrer ou alors me donner les
droits dessus.
David
++
Index: report/transferreditems/transferreditems.php
===================================================================
--- report/transferreditems/transferreditems.php (revision 281)
+++ report/transferreditems/transferreditems.php (working copy)
@@ -43,7 +43,7 @@
$types = array();
foreach (array('Computer', 'Monitor', 'NetworkEquipment', 'Peripheral', 'Phone', 'Printer',
- 'Software','SoftwareLicense') as $type) {
+ 'Software','SoftwareLicense', 'Contract') as $type) {
$label = call_user_func(array($type, 'getTypeName'));
$types[$type] = $label;
}
@@ -66,9 +66,14 @@
new PluginReportsColumnDateTime('date_mod', __('Transfert date', 'reports')));
$report->setColumns($columns);
+ $otherserial = "`$table`.`otherserial`,";
+ if ($itemtype == 'Contract') {
+ $otherserial = '';
+ }
+
$query = "SELECT `$table`.`id` as `items_id`,
`$table`.`name`,
- `$table`.`otherserial`,
+ ".$otherserial."
`glpi_logs`.`date_mod` as `date_mod`,
`glpi_logs`.`itemtype` as `itemtype`,
`glpi_logs`.`old_value`,
_______________________________________________
Glpi-dev mailing list
[email protected]
https://mail.gna.org/listinfo/glpi-dev