--
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/8e671899-a5c8-4cf1-b5b0-8f0ab8be7199%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
What is the format in the barcode like?For example, if it is "{{ item_code }} | {{ serial_no }}", you can write javascript code to split the string by | and only keep the serial_no when the value in entered in the field.
On Thu, Jul 17, 2014 at 2:59 PM, Ulrik Tuemand <u.tu...@gmail.com> wrote:
Hi Guys,--A lot of our products is serialised, which means that the barcode on the product contains the product number and the serial. how do i make sure that when i want to scan my outgoing goods, that it only reads the serial, and not the complete information?
Best RegardsUlrik
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-forum+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/8e671899-a5c8-4cf1-b5b0-8f0ab8be7199%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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/89cede3f-326b-427f-8e43-5c5504bc1613%40googlegroups.com.
<!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript"> function convertSN(value) { var splitted = value.split(" "); if (splitted.length === 2) { document.getElementById("done").value = splitted[1].substring(2).replace("+","-"); } else if (splitted.length === 5) { document.getElementById("done").value = splitted[0].substring(1)+"-"+splitted[1].substring(2); } } </script> </head> <body> <form action="#"> <input type="text" placeholder="Scan barcode" onkeypress="convertSN(this.value)"> <input type="text" placeholder="output" id="done"> </form> </body> </html>
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. 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.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. 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/f3c0885d-6681-4d7d-b5fa-e069b5f99957%40googlegroups.com.
Hi Rush,So far so good. That i am aware of.My question is how do i point this script directly to the field "add serial" in stock entry f.x. The script should only be bound to this specific field.
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/97690e53-987c-4125-a60a-9ff21343fa5b%40googlegroups.com.