How to Print Barcode Labels in ERPNext (version-14)?

I need help on how to print barcode labels.

I would like the barcode to be generated every time I enter an item and it contains the following information:
serial, brand, item name, category, warehouse, quantity.

Do you think it’s feasible? Also, since I’m not practical, do you think it’s not too much of a hassle to have a step-by-step guide of the setup process?

Regards

Hi @batmanbattleman,

It might be challenging, but we’d like to understand whether you prefer to configure it within a custom field or a print format.

The simplest solution that can give me more or less the required result.
The ideal would be in print format, but in case this is not the case, I am also satisfied with the custom field.

Hi @batmanbattleman,

We have provided examples of QR code sets formatted for custom printing. Kindly review them at your convenience.

{% set data1 = doc.customer %}
{% set data2 = doc.name %}

{% set qr_code_data = data1 + " | " + data2 %}

<img src="https://api.qrserver.com/v1/create-qr-code/?data={{ qr_code_data | urlencode }}&amp;size=100x100" />

Output:

When you can the QR code then Customer Name and Doc ID will show.

You can also set for Item your accordingly.

We opt for QR codes due to their ability to efficiently manage extensive data. Unlike barcodes, where longer data results in a cumbersome and visually unappealing code, QR codes provide a more streamlined and visually manageable solution.

I hope this helps.

Thank You!

2 Likes

Thanks for your reply, I will consider the proposal to switch to QR codes.
But at the moment I’m asked to configure the barcode.

I fiddled around a bit, and I came up with the solution that the barcode format in the Print Format is correctly displayed, but I don’t display the barcode correctly (probably because of the JSBarcode integration). Regarding JS Barcode, are there any solutions for a tutorial that works in version 14?

How are you printing your labels, sheet or dedicated label printer? Some label printers will encode the barcodes for you, just send the info direct.

Your solution is simple but elegant. This might come handy in near future.