Can you suggest the best option to show the referred Delivery Note Number in the sales invoice doctype print format?
@jayakumar, please add a field below the header to showcase the delivery note number. This is the best place to include it, and I want to use this format in every sales invoice print.
Depending on the use case, if you create a sales invoice from multiple delivery notes, you need to apply logic to display the multiple delivery note numbers in the header. Otherwise, you can set them at the item level.
Try,
{% set dn_list = frappe.db.get_list(“Delivery Note”,filters={“sales_invoice”:doc.name},pluck=“name”)
{% for dn in dn_list %}
{{ dn }}
{% endfor %}