pluginsGLPI / geninventorynumber

Inventorynumber generation
GNU General Public License v3.0
8 stars 14 forks source link

Auto-reset index #49

Closed cconard96 closed 2 years ago

cconard96 commented 2 years ago

Based on #41 for GLPI 10 compatibility.

Adds a new "Auto-reset method" for itemtype-based and global indexes. This option is intended to be used when templates include date-related tags such as:

<\Y####>

You can then set the auto-reset method to Yearly to have the index reset to 0 every year to get:

20210001
20210002
20220001

Current auto-reset options added:

cconard96 commented 2 years ago

I think this need a rebase (some commits should not be part of this PR).

Rebased

Just a side note, the changes does not match the specifications sold in the internal ref !23452. I don't think it's a bit deal since in the end it is the same feature (just configured differently) so we can keep this version +1. Maybe something got lost in translation or we didn't communicate the original specifications properly ?

I did not have access to the internal GLPI at the time. All I had to work with was "Automatic reset of inventory numbers" from the GitLab, and an export of the original ticket content. I had not seen any of the followups after the initial request. So, I didn't see the agreed on specs.