You are not logged in.
Hello,
My problem is that (default) the glpi creates a _global_ license for a new software (with bought=yes)
Is it possible to change it ? My idea was to make it "new" or "incoming" with bought=no number=0.
Best place is to modify the scripts itself if no other solution possible
Normally a global license can not be changed :-(
Any idea or tip ?
Offline
You can do this by changing the mysql schema definition for the table glpi_software. The default value for the field BUY is Y. Change it to N.
From mysql,
use glpi;
ALTER TABLE `glpi_licenses` CHANGE `buy` `buy` ENUM( 'Y', 'N' ) NOT NULL DEFAULT 'N';
Enjoy
Offline
Thanx!
And is it okay if I change the default number of licenses from 1 to zero ?
Last edited by nyasi (2007-01-25 01:59:32)
Offline
I am not sure where you would do that- I know that if you set a license to 0 it will disappear!
Offline
My goal is to have every new imported (OCS inventiory) software as a not licensed.
I do not want to have all new software as bought global license, because it is not true.
I would like to give the licenses manually not autoomatically.
For example I have 32 winzip license but it is installed on 43 machines. Than I have to see those machines that do not have the licenses (ask the owner to remove it or discuss them to buy more licenses)
I hope it is clear :-)
Last edited by nyasi (2007-01-25 02:01:07)
Offline
Sure, I understand. That is our goal as well. But from what I have determined, if you can enter a license, move licenses discovered to THAT license by unglobalising them, then you can achieve what you want.
I am looking at the code now on how to do that. Currently, if you MOVE an unbglobalized license to an existing license entry, it will not increase or decrease the amount you have available. If it did that, then will will be able to reconcile our paper records of what licenses we purchased (by entering licenses manually) with what OCSNG discovered.
Dave
Offline