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

Label generator: Create Barcode / QR-Code with the IPN (Internal Part Number) #373

Closed
Alonia123 opened this issue Sep 13, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@Alonia123
Copy link

Currently I have adapted PartDB so that I have 2 types of label placeholders to choose from ("Barcodes" and "Barcodes IPN").
The problem for me is the increased effort to perform updates, because I have to constantly check if the customized modifications
still work.

Brief description of what I did:

BarcodeProvider.php:
Added the following BarcodeProviders:

[[2D_CONTENT_IPN]]
[[1D_CONTENT_IPN]]
[[BARCODE_C39_IPN]]
[[BARCODE_C128_IPN]]
[[BARCODE_QR_IPN]]

BarcodeContentGenerator.php:

Added getIPNContent:

BarcodeGenerator.php:

getContent customized -> create a barcode using getIPNContent


Of course I had to do some more work here and there, but I wanted to describe briefly what I have currently done.
I would be happy if this function could be integrated into PartDB

@Alonia123 Alonia123 added the enhancement New feature or request label Sep 13, 2023
@jbtronics
Copy link
Member

I dont quite understand what you want to achieve with it?
So you want barcodes, where the content of the barcodes is the IPN not the generated id? Why do you need this?

@Alonia123
Copy link
Author

Alonia123 commented Sep 13, 2023

I dont quite understand what you want to achieve with it? So you want barcodes, where the content of the barcodes is the IPN not the generated id? Why do you need this?

Sorry for the ambiguity, I should have described the use case.

Our pick-and-place machine works with the IPN number, which means that when we mount a roll of components, we scan the IPN and "marry" the roll to a feeder (roll holder).
Since the system has been maintained this way for many years and the system does not offer us any other option.
Currently we have a label with a QR code (link to the component) and a barcode that contains the IPN.

Of course this is a personal use case, but I think there are certainly other users who would use this as well

@jaimelaborda
Copy link

Certainly I will also benefit of this feature, as I'm also in the same use case as @Alonia123 and I think is pretty normal to use the IPN in the industry,

jbtronics added a commit that referenced this issue Oct 26, 2023
This is preparatory work for issue #373
@jbtronics
Copy link
Member

I have added this feature and it will be available in the upcoming Part-DB 1.9
However, I named the placeholders [[IPN_BARCODE_QR]] and so on instead of [[BARCODE_C39_IPN]] as this naming scheme seemed more logical.

Also there is no [[2D_CONTENT_IPN]] and [[2D_CONTENT_IPN]], as this is the same as [[IPN]]

jbtronics added a commit that referenced this issue Nov 11, 2023
@jbtronics
Copy link
Member

With the latest commit, Part-DB scanner also supports to scan these IPN barcodes.

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

No branches or pull requests

3 participants