Try ERPNext Try Frappe Cloud Buy Support Partners Foundation

Where can I find the 'Standard' print format for Delivery Note?

I need to directly edit the Standard print format for Delivery Notes and several other sales docs.

I would be grateful if someone here would supply a link to a few of those files in GitHub.

Thanks!

It’s literally standard:

Hmmmm. Ok. That’s the template, but where is the code that repackages specifications like this …

[
    {
        "fieldname": "print_heading_template",
        "fieldtype": "Custom HTML",
        "options": "<div class=\"print-heading\">\t\t\t\t<h2>Delivery Note<br><small>{{ doc.name }}</small>\t\t\t\t</h2></div>"
    },
    {
        "fieldtype": "Section Break",
        "label": "Delivery To"
    },
    {
        "fieldtype": "Column Break"
    },
    {
        "fieldname": "naming_series",
        "print_hide": 0,
        "label": "Series"
    },

      :      :      :      :      :      :      : 
    {
        "fieldname": "items",
        "print_hide": 0,
        "label": "Items",
        "visible_columns": [
            {
                "fieldname": "item_code",
                "print_width": "150px",
                "print_hide": 0

    {
        "fieldtype": "Section Break",
        "label": "Status"
    },
    {
        "fieldtype": "Column Break"
    },
    {
        "fieldtype": "Column Break"
    },
    {
        "fieldname": "instructions",
        "print_hide": 0,
        "label": "Instructions"
    }
]

… into a structure like this …

{% for column in section.columns %}

… and specifying which DocType it is processing?

It’s not pretty good thought to change default standard print format but you will be able to create new custom print format and then you will customise the format as per your requirements.

The problem that is bothering me so much is this:

Screenshot_2021-04-02_07-31-54

It is incredibly annoying to have to say to my users …

Yes!
I know you do NOT want to have to click that stupid dropdown every single time!
I’m sorry. I can’t find a way to fix it.

There’s a field in Customize Form precisely for this.

1 Like

Yay!

Thank you so much!

That then gets me …

You can setup a default print format for the doctype. It’s there precisely for this situation: