Need help clarify Custom Barcode field logic.

40 views
Skip to first unread message

Nonnatee Kanjana

unread,
Jun 9, 2014, 2:39:59 AM6/9/14
to erpnext-dev...@googlegroups.com
How does the barcode field gets render on print? And which encoded barcode symbol are supported?

I'm trying to auto-generate barcode on printed docs but seem to get lost in how to auto-gen(on-save) barcode and render them on prints. 

any guide or suggestion is much appreciated.

Thanks.

Rushabh Mehta

unread,
Jun 9, 2014, 6:51:48 AM6/9/14
to erpnext-dev...@googlegroups.com
Barcode printing is not out of the box in ERPNext. I think there are specialized tools for this. If anyone has figured this out (Indictrans?) please share.



--
Note:
 
If you are posting an issue,
1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/e6814c14-9a06-4c69-bb3d-8fa8a5aa9dd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Saurabh Palande

unread,
Jun 9, 2014, 8:05:09 AM6/9/14
to erpnext-dev...@googlegroups.com
Hi,

You have to add, a custom field on form with type image or html, then just generate an barcode image with the help of pyBarcode package. 

we have done this with field type html: refer method generate_barcode() from line 464-480.

Then use the same field on print format. 





For more options, visit https://groups.google.com/d/optout.



--
S.S.Palande

MANISH SHAH

unread,
Jun 9, 2014, 9:48:39 AM6/9/14
to erpnext-dev...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages