Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple IPN patterns #11

Open
gid204 opened this issue Oct 22, 2024 · 4 comments
Open

Multiple IPN patterns #11

gid204 opened this issue Oct 22, 2024 · 4 comments

Comments

@gid204
Copy link

gid204 commented Oct 22, 2024

Feature Request:

This may be a niche requirement but I think it could be useful to specify multiple IPN patterns to allow the addition of parts and have multiple sets of IPNs.

An example (my particular use case); I'm adding all my electronic components to Inventree and they are numbered depending on their category. I.e. Capacitors are 00-10-xxxx and resistors are 00-11-xxxx.
If you could specify an IPN category when adding a part, IPN generator sees that and applies the applicable pattern.

@wolfdog85
Copy link

wolfdog85 commented Oct 29, 2024

I am looking for something similar to this as well. I am needing to change the IPN based on the Part Category chosen. Possibly willing to contract this out to get it done fast.

@LavissaWoW
Copy link
Owner

I've had this on my mind as a natural expansion of the plugin.
I do however need to look into the limitations of the InvenTree Plugin environment to determine how one would go about implementing this.

In any capacity, it's most likely going to be tied to categories, as that's a native database object with the ability to add plugin metadata to. The practical implementation will depend on the above. Either as something configurable in settings, or something configurable within the GUI of each category.

@wolfdog85
Copy link

wolfdog85 commented Nov 8, 2024


inventree

Here is an example of my category structure. Our part numbers would be something like 3BBASY-PRT001 then 3BBASY-PRT002... etc. Each category would have its own auto increment. The only categories that are not structural only are the lowest level categories such as Assembly, Drawing, and Part. I was also thinking about completely hiding the IPN number during the "New Part" form, but allow it during the edit form. Let me know what you think, and we are willing to contract out if you would like to get paid. We are looking to get this done very quickly. Thanks!

@ZinnerC
Copy link

ZinnerC commented Dec 4, 2024

I would highly appreciate this functionality. Might also be that the IPNs would be dependent on tags instead of categories, since it would allow more flexibility. As far as I know, parts can only be assigned to one category but can have multiple tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants