--To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/f8224600-1ba7-44fe-9d81-db5fb7216465%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/f54a5ba3-26f7-4c2d-a283-b3b1715eb6fd%40googlegroups.com.
Paul,Batch Id field is located under Delivery Note Item table, which is the child table under Delivery Note.
In the Print Format's script, if you add Batch Id's field name in the script written for item table, it will be shown in the Delivery Note Print Format.
On Mon, Mar 31, 2014 at 3:07 AM, Paul Dowd <pd...@myzealand.com> wrote:
HiThanks for the replies to date, unfortunately they don't really help :/I suppose the main question is: How do I access data from a different form in the print format?e.g. in the Delivery note print format I can easily access a custom UID Number fields using <script>doc.uid_number</script>How do I access for instance the Batch batch_id field in the Delivery Note print format?Thanks
--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/f54a5ba3-26f7-4c2d-a283-b3b1715eb6fd%40googlegroups.com.
Hi, Paul!
you can use a query in server to get some informations eg:
var company;
wn.call({
method: "webnotes.client.get",
args: {
doctype: "Company",
name: "Your company name"
},
callback: function(resp){
if (resp.exc) throw resp.exc;
company = resp.message[0];
}
});
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/3ac4ecc0-6f24-47ab-badd-00d73fb23c5c%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
Paul
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/f54a5ba3-26f7-4c2d-a283-b3b1715eb6fd%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/3ac4ecc0-6f24-47ab-badd-00d73fb23c5c%40googlegroups.com.
Paul, you can replace the method webnotes.client.get
to webnotes.client.get_value
and pass the field name in parameters eg: {doctype: "Company", fieldname: "exporter_number", filters: {name: "You Company Name"}}
For the complete API check https://github.com/webnotes/wnframework/blob/develop/webnotes/client.py
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/c5ade28f-3c44-4224-91d0-1343286e3d0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.