[racktables-users] Re: Additional contract type

  • From: Denis Ovsienko <denis@xxxxxxxxxxxxx>
  • To: <racktables-users@xxxxxxxxxxxxx>
  • Date: Tue, 06 Jun 2017 09:44:24 +0100

---- On Sun, 04 Jun 2017 14:33:26 +0100 Samy Khadem-Al-Charieh<samy@xxxxxxxxx> 
wrote ---- 

Hello everybody,

we have here different 4G routers running
and I would like to add for the SIM cards 'service contracts'.
These should also show up under 'Report' -> 'Expirations'.
How can I achieve this?

Hello Samy.

To add this tracking you can either use one of the existing attributes that the 
existing "warranty expirations" report already covers by default:
+----+------+-----------------------------+
| id | type | name                        |
+----+------+-----------------------------+
| 21 | date | Support Contract Expiration |
| 22 | date | HW warranty expiration      |
| 24 | date | SW warranty expiration      |
+----+------+-----------------------------+

Or you can (since RackTables 0.20.12) add one or more new "date" attributes, 
map them to the required object type and then add those new attribute(s) to the 
report. To add the attributes to the report you will need to put a PHP file 
into racktables/plugins and in the file modify the $expirations array 
appropriately. You can see the existing structure of the array here: 
https://github.com/RackTables/racktables/blob/master/wwwroot/inc/functions.php#L152

-- 
    Denis Ovsienko



Other related posts: