LavissaWoW / inventree-ipn-generator

Plugin for InvenTree that auto-generates internal part numbers
MIT License
3 stars 2 forks source link

Zero indexing #12

Open RasmusAPedersen opened 1 week ago

RasmusAPedersen commented 1 week ago

Thanks a lot for this plugin! Makes it a breeze to have sequential part numbers.

We use a system that goes: 123-456-7890

I would build this like so: {1+}{2}(-){3}-{4}

This means my first IPN would look like this: 101-001-0001

Ideally I would like my first IPN to look like this: 100-000-0001

Is it possible to change between zero and one indexing with the current system? I couldn't quite figure it out, which makes me think that it's not. If it isn't possible, it would add some nice flexibility to make it possible.

Thanks!