Adding invoice number to delivery note print format

75 views
Skip to first unread message

Paul Dowd

unread,
Sep 22, 2014, 11:47:25 PM9/22/14
to erpnext-dev...@googlegroups.com
Hi

How can I add the linked invoice number to the delivery note print format? 

I have no option but to do this since it's a dictate from our largest customer. It can surely be done, just a matter of what the method is to do it. 

Could I create a custom field and use JS or SQL to import the data similar to what I've done in the reports? This would be preferential to doing it through code in the print format.

Thanks

Paul

Rushabh Mehta

unread,
Sep 23, 2014, 1:32:56 AM9/23/14
to erpnext-dev...@googlegroups.com
{{ ", ".join(list(set([d.against_sales_invoice for d in doc.delivery_note_details]))) }}


Thanks

Paul

--
1. Please be kind and don't send large attachments
2. For issues, features requests use https://github.com/frappe/erpnext/issues
---
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/4c6d9dbb-d971-48f9-a2c8-74ce9b8b9a3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Paul Dowd

unread,
Sep 24, 2014, 7:30:31 PM9/24/14
to erpnext-dev...@googlegroups.com
Hi Rushabh,

How / where should I be implementing this? I have tried adding it in the print format replacing the "doc.invoice_number" and in a custom field but can't get it to work.

Thanks

Paul

Rushabh Mehta

unread,
Sep 26, 2014, 1:44:45 AM9/26/14
to erpnext-dev...@googlegroups.com
On 25-Sep-2014, at 5:00 am, Paul Dowd <pd...@myzealand.com> wrote:

Hi Rushabh,

How / where should I be implementing this? I have tried adding it in the print format replacing the "doc.invoice_number" and in a custom field but can't get it to work.

I hope you are using server side print formats. In client side, you will have to write the same code in javascript.


Thanks

Paul

--
1. Please be kind and don't send large attachments
2. For issues, features requests use https://github.com/frappe/erpnext/issues
---
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.
Reply all
Reply to author
Forward
0 new messages