pluginsGLPI / barcode

GNU Affero General Public License v3.0
36 stars 34 forks source link

Base ability to generate Bar/QR codes on items fields #39

Closed cedric-anne closed 5 years ago

cedric-anne commented 5 years ago

I made this PR to give ability to generate bar and QR codes for any object that has required fields.

Bar codes will not be available for any item having a otherserial field, and for CommonITILObject types (in replacement of Ticket).

QR codes will be available for any item, as it can be generated using only the ID.

Replaces https://github.com/pluginsGLPI/barcode/pull/35

cedric-anne commented 5 years ago

It is possible to also enable barcode generation for every item, based on its id if the otherserial field is not present.

Is this relevant to be able to generate codes for any itemtype ? Or is the list should be filtered ?

xacobofg commented 5 years ago

I have made the checks with the modifications you made and it works correctly

OscarBeiro commented 5 years ago

IMHO barcodes only make sense in case you have a significative number (inventory number for example). Currently the mass actions is shown for tickets and generating a barcode for a ticket doesn't make sense, (and doesn't work neither)

QR are more flexible, allowing lots of information and should be enabled GLPI wide as you've done.