ERPNext doesnt have a barcode label printing feature out-of-box . I wonder how you guys solve the problem for barcode label printing . Is there any free app(windows/linux) which can load data from a csv file to print barcode labels?
pooja.m
December 20, 2018, 6:19am
2
Hey,
You should refer this link
Update: this is now a functioning example with issue fixed
Auto generating barcode:
import random
def validate_barcode(self):
if self.barcode:
if self.barcode == "auto":
existing = frappe.db.sql_list("select barcode from tabItem")
self.barcode = random.choice([item for item in map(str, range(1000,10000)) if item not in existing])
..
Customize Form Item:
[image]
New Print Format HTML:
<table class="custom">
<tr>
<td class="papa">
<p class="text-center" style="font-weight:…
2 Likes
Hello,
It is quite easy.
Follow this post.
Reply from @fkardame
The barcode are sent directly to the printer using print format and not as image.
Using jinja(for pulling items and quantity in row) html(for text and alignments), js(for barcode using SVG) and css (for print media size - can decide the barcode label size ) we are using 1.5inch width *1inch
Created a “barcode label” print format in purchase receipt and material receipt.
So after submission they can just print and select barcode label and print the barcodes in zebra print…
I will be posting the print format script later on the forum so users can use it.
2 Likes