You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2009-01-06 10:48:03

kladynu
Member
From: Cluj-Napoca, Romania
Registered: 2009-01-06
Posts: 2

Auto-generated "Inventory number"

Is there a possibility to have a auto-generated and unique "Inventory number" that can be customized? For example "LLNNNNN" where L is letter and N is number.
Thanks.

Offline

#2 2009-01-06 11:10:40

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Auto-generated "Inventory number"

http://glpi-project.org/wiki/doku.php?i … s_gabarits

It"s here. Use google to translate wink


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#3 2009-01-06 12:16:37

kladynu
Member
From: Cluj-Napoca, Romania
Registered: 2009-01-06
Posts: 2

Re: Auto-generated "Inventory number"

Thanks for you answer. This option resolve partially my problem. It is possible to have a unique number over all types of inventory device (computers, monitors, network...etc).
For example, is possible to have a computer with inventory number "IT00001", a monitor with "IT00002" and a printer with "IT00003"?
Thanks.

Offline

#4 2009-02-16 10:02:52

lalo
Member
Registered: 2009-02-13
Posts: 4

Re: Auto-generated "Inventory number"

hi,
I'm also looking for the possibility to create a UNIQUE inventory number. No one out there who knows how to accomplish this?

Offline

#5 2009-02-16 10:17:39

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: Auto-generated "Inventory number"

lalo wrote:

hi,
I'm also looking for the possibility to create a UNIQUE inventory number. No one out there who knows how to accomplish this?

you may take a look at the generateInventoryNumber plugin.
it may be what you're looking for but unfortunatly I haven't time yet to write the doc in english sad

Offline

#6 2009-02-16 10:21:23

lalo
Member
Registered: 2009-02-13
Posts: 4

Re: Auto-generated "Inventory number"

thx wawa. I'll have a look at the plugin :-)

Offline

#7 2009-02-16 12:56:29

lalo
Member
Registered: 2009-02-13
Posts: 4

Re: Auto-generated "Inventory number"

it's working! difficult to find, as not listed in the list of plugins. can be found here:
http://glpi-project.org/spip.php?article313

installation was also a little harder. had no menu entry "plugin" before. just tried to call http://<glpi-site>/plugins/generateinventorynumber/seupt.php.

only then I had the menu entry!?

one unlucky thing: the inventory number is only created when the record of the new asset (PC, monitor, printer,...) is safed. it actually should already be precalculated when the entry form of the new asset is displayed. i know it brings some issues with unused numbers, if the form is cancelled instead of being safed, but I'd rather take this downside :-)

thx wawa

Offline

#8 2009-02-16 15:16:08

wawa
GLPI-DEV
From: Montpellier / France
Registered: 2006-07-03
Posts: 6,019
Website

Re: Auto-generated "Inventory number"

lalo wrote:

it's working! difficult to find, as not listed in the list of plugins. can be found here:
http://glpi-project.org/spip.php?article313

where is it not listed ?

lalo wrote:

installation was also a little harder. had no menu entry "plugin" before. just tried to call http://<glpi-site>/plugins/generateinventorynumber/seupt.php.

only then I had the menu entry!?

did you logout ? it may surely be a bug

lalo wrote:

one unlucky thing: the inventory number is only created when the record of the new asset (PC, monitor, printer,...) is safed. it actually should already be precalculated when the entry form of the new asset is displayed. i know it brings some issues with unused numbers, if the form is cancelled instead of being safed, but I'd rather take this downside :-)

the plugin calculates an inventorynumber when an item is inserted in the DB
you cannot modify an inventory number once it's created

you can tell me exactly what your're looking for, and I'll see if it might be possible to add it for a new version (or if you know how to code, then you can help me, it'd be really cool)

Offline

#9 2009-02-16 17:32:33

lalo
Member
Registered: 2009-02-13
Posts: 4

Re: Auto-generated "Inventory number"

wawa wrote:

where is it not listed ?

In the plugin list on www.glpi-project.org if I select "Resources" (on top) and "Plugins"

wawa wrote:

did you logout ? it may surely be a bug

no I (think I) didn't. But I won't follow up now ;-)

wawa wrote:

the plugin calculates an inventorynumber when an item is inserted in the DB
you cannot modify an inventory number once it's created
you can tell me exactly what your're looking for, and I'll see if it might be possible to add it for a new version (or if you know how to code, then you can help me, it'd be really cool)

Just calculate the number upon opening the empty form instead of when inserting into the DB. When record is saved, screen changes back to new empty form => need to click on "last added: xxxx" in order to receive the number. (nothing really serious, but makes a few clicks more)
I know that you would maybe create orphaned numbers if you calculate the number before the save command is issued (if action cancelled and number was already "reserved" - you need to reserve the number, because if 2 people do this at the same time, they might end up in using the same number as long as they are in edit mode)
I hope you understand my thoughts 8-)

Last edited by lalo (2009-02-16 17:34:16)

Offline

Board footer

Powered by FluxBB