[racktables-users] Re: Additional contract type

  • From: Samy Khadem-Al-Charieh <samy@xxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Tue, 6 Jun 2017 11:48:16 +0300

Hi Denis,

thanks a lot for your answer.
I guess I should be able to make it work now.

Best regards, Samy.




On 6 June 2017 at 11:44, Denis Ovsienko <denis@xxxxxxxxxxxxx> wrote:

---- 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: