From 0dbedbfb2526d48de03c1bdf347e708e1825da02 Mon Sep 17 00:00:00 2001 From: khushi8112 Date: Fri, 24 Jul 2026 16:18:35 +0530 Subject: [PATCH] feat: add four Delivery Note print formats built with the print format builder Adapted from the Sales Order formats: transaction_date/delivery_date mapped to Delivery Note's own posting_date and po_no (customer's PO number), items table bound to Delivery Note Item, status field carries the real Delivery Note status list, no letter head embedded. --- .../delivery_note_bordered/__init__.py | 0 .../delivery_note_bordered.json | 36 +++++++++++++++++++ .../delivery_note_classic/__init__.py | 0 .../delivery_note_classic.json | 36 +++++++++++++++++++ .../delivery_note_modern/__init__.py | 0 .../delivery_note_modern.json | 36 +++++++++++++++++++ .../__init__.py | 0 .../delivery_note_modern_with_images.json | 36 +++++++++++++++++++ 8 files changed, 144 insertions(+) create mode 100644 erpnext/stock/print_format/delivery_note_bordered/__init__.py create mode 100644 erpnext/stock/print_format/delivery_note_bordered/delivery_note_bordered.json create mode 100644 erpnext/stock/print_format/delivery_note_classic/__init__.py create mode 100644 erpnext/stock/print_format/delivery_note_classic/delivery_note_classic.json create mode 100644 erpnext/stock/print_format/delivery_note_modern/__init__.py create mode 100644 erpnext/stock/print_format/delivery_note_modern/delivery_note_modern.json create mode 100644 erpnext/stock/print_format/delivery_note_modern_with_images/__init__.py create mode 100644 erpnext/stock/print_format/delivery_note_modern_with_images/delivery_note_modern_with_images.json diff --git a/erpnext/stock/print_format/delivery_note_bordered/__init__.py b/erpnext/stock/print_format/delivery_note_bordered/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/erpnext/stock/print_format/delivery_note_bordered/delivery_note_bordered.json b/erpnext/stock/print_format/delivery_note_bordered/delivery_note_bordered.json new file mode 100644 index 00000000000..f8654bc8846 --- /dev/null +++ b/erpnext/stock/print_format/delivery_note_bordered/delivery_note_bordered.json @@ -0,0 +1,36 @@ +{ + "absolute_value": 0, + "align_labels_right": 0, + "creation": "2026-07-24 16:10:34.206282", + "custom_format": 0, + "disabled": 0, + "doc_type": "Delivery Note", + "docstatus": 0, + "doctype": "Print Format", + "font": "Inter", + "font_size": 12, + "format_data": "{\"header\":{\"columns\":[{\"label\":\"\",\"fields\":[]}]},\"sections\":[{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Customer Name\",\"fieldname\":\"customer_name\",\"fieldtype\":\"Small Text\",\"show_label\":\"inline\",\"label_gap\":6},{\"label\":\"Delivery Note\",\"fieldname\":\"name\",\"fieldtype\":\"Data\",\"show_label\":\"inline\",\"label_gap\":6},{\"label\":\"Custom HTML\",\"fieldname\":\"custom_html_vytjghmu\",\"fieldtype\":\"HTML\",\"html\":\"
\\n
Bill From:
\\n
{{ doc.company }}
\\n
\",\"custom\":1},{\"label\":\"Address\",\"fieldname\":\"company_address_display\",\"fieldtype\":\"Text Editor\",\"show_label\":\"hide\"}]},{\"label\":\"\",\"fields\":[{\"label\":\"Posting Date\",\"fieldname\":\"posting_date\",\"fieldtype\":\"Date\",\"show_label\":\"inline\",\"label_gap\":6},{\"label\":\"Customer's PO No\",\"fieldname\":\"po_no\",\"fieldtype\":\"Small Text\",\"show_label\":\"inline\",\"label_gap\":6},{\"label\":\"Custom HTML\",\"fieldname\":\"custom_html_vytjghmu_zBGrfDlm\",\"fieldtype\":\"HTML\",\"html\":\"
\\n
Bill To:
\\n
{{ doc.customer }}
\\n
\",\"custom\":1},{\"label\":\"Address\",\"fieldname\":\"address_display\",\"fieldtype\":\"Text Editor\",\"show_label\":\"hide\"}]}],\"has_fields\":true,\"cell_padding\":10,\"custom_style\":\"\",\"margin\":{\"top\":15,\"right\":0,\"bottom\":0,\"left\":0},\"field_borders\":true,\"gap\":0},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"\",\"fieldname\":\"items\",\"fieldtype\":\"Table\",\"options\":\"Delivery Note Item\",\"table_columns\":[{\"label\":\"No\",\"fieldname\":\"idx\",\"fieldtype\":\"Data\",\"width\":5},{\"label\":\"Item\",\"fieldname\":\"item_name\",\"fieldtype\":\"Data\",\"width\":22,\"column_condition\":\"\"},{\"label\":\"Item\",\"fieldname\":\"item_code\",\"fieldtype\":\"Link\",\"options\":\"Item\",\"width\":13},{\"label\":\"Quantity\",\"fieldname\":\"uom\",\"fieldtype\":\"Link\",\"options\":\"UOM\",\"width\":10,\"merged_fields\":[{\"fieldname\":\"qty\",\"fieldtype\":\"Float\",\"style\":\"secondary\"}],\"merge_direction\":\"horizontal\",\"column_condition\":\"print_settings.print_uom_after_quantity != 1\"},{\"label\":\"Quantity\",\"fieldname\":\"qty\",\"fieldtype\":\"Float\",\"width\":10,\"merged_fields\":[{\"fieldname\":\"uom\",\"fieldtype\":\"Link\",\"style\":\"secondary\"}],\"merge_direction\":\"horizontal\",\"column_condition\":\"print_settings.print_uom_after_quantity\"},{\"label\":\"Rate\",\"fieldname\":\"rate\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"width\":9},{\"label\":\"Amount\",\"fieldname\":\"amount\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"width\":11}],\"table_style\":\"lined\",\"table_bordered\":true,\"table_header\":\"styled\",\"table_cell_padding\":8,\"table_radius\":10,\"show_label\":\"hide\"}]}],\"has_fields\":true,\"margin\":{\"top\":10,\"right\":0,\"bottom\":0,\"left\":0}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[]},{\"label\":\"\",\"fields\":[{\"label\":\"Sub Total\",\"fieldname\":\"total\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"align\":\"left\",\"label_justify\":\"space-between\",\"custom_style\":\"\"},{\"label\":\"Discount\",\"fieldname\":\"discount_amount\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"align\":\"left\",\"label_justify\":\"space-between\",\"custom_style\":\"\"},{\"label\":\"\",\"fieldname\":\"repeater\",\"fieldtype\":\"Repeater\",\"source\":\"taxes\",\"repeater_columns\":[{\"template\":[{\"t\":\"s\",\"v\":\"\"},{\"t\":\"f\",\"v\":\"description\"},{\"t\":\"s\",\"v\":\"\"}],\"align\":\"left\",\"width\":65,\"color\":\"#6b7280\"},{\"template\":[{\"t\":\"f\",\"v\":\"tax_amount\"}],\"align\":\"right\",\"width\":35,\"color\":\"#1f2328\"}],\"row_condition\":\"print_settings.print_taxes_with_zero_amount or row.tax_amount != 0\"},{\"label\":\"Grand Total\",\"fieldname\":\"grand_total\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"align\":\"left\",\"label_justify\":\"space-between\",\"custom_style\":\"border-top:1.5px solid #e5e7eb;margin-top:6px;padding-top:10px;font-weight:700;\",\"label_color\":\"#1f2328\"}]}],\"has_fields\":true,\"field_orientation\":\"left-right\",\"gap\":40,\"margin\":{\"top\":15,\"right\":12,\"bottom\":0,\"left\":0},\"padding\":{\"top\":0,\"right\":0,\"bottom\":0,\"left\":0}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"In Words\",\"fieldname\":\"in_words\",\"fieldtype\":\"Small Text\",\"show_label\":\"hide\"}]}],\"background\":\"#f8f8f8\",\"padding\":{\"top\":5,\"right\":12,\"bottom\":5,\"left\":12},\"margin\":{\"top\":5,\"right\":0,\"bottom\":0,\"left\":0}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Divider\",\"fieldname\":\"divider_dGLQjxHJ\",\"fieldtype\":\"Divider\",\"custom\":1}]}]},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Terms and Conditions\",\"fieldname\":\"terms\",\"fieldtype\":\"Text Editor\"}]}],\"has_fields\":true,\"margin\":{\"top\":5,\"right\":12,\"bottom\":0,\"left\":12}}],\"footer\":{\"columns\":[{\"label\":\"\",\"fields\":[]}],\"show_label\":\"hide\"}}", + "idx": 0, + "label_color": "#6b7280", + "line_breaks": 0, + "margin_bottom": 8.0, + "margin_left": 8.0, + "margin_right": 8.0, + "margin_top": 15.0, + "modified": "2026-07-24 16:14:44.365914", + "modified_by": "Administrator", + "module": "Stock", + "name": "Delivery Note Bordered", + "owner": "Administrator", + "page_number": "Hide", + "pdf_generator": "chrome", + "print_format_builder": 0, + "print_format_builder_beta": 1, + "print_format_for": "DocType", + "print_format_type": "Jinja", + "raw_printing": 0, + "show_label_colon": 0, + "show_section_headings": 0, + "standard": "Yes", + "value_color": "#1f2328" +} diff --git a/erpnext/stock/print_format/delivery_note_classic/__init__.py b/erpnext/stock/print_format/delivery_note_classic/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/erpnext/stock/print_format/delivery_note_classic/delivery_note_classic.json b/erpnext/stock/print_format/delivery_note_classic/delivery_note_classic.json new file mode 100644 index 00000000000..eec6e251c5f --- /dev/null +++ b/erpnext/stock/print_format/delivery_note_classic/delivery_note_classic.json @@ -0,0 +1,36 @@ +{ + "absolute_value": 0, + "align_labels_right": 0, + "creation": "2026-07-24 16:10:34.216937", + "custom_format": 0, + "disabled": 0, + "doc_type": "Delivery Note", + "docstatus": 0, + "doctype": "Print Format", + "font": "Inter", + "font_size": 13, + "format_data": "{\"header\":{\"columns\":[{\"label\":\"\",\"fields\":[]}]},\"sections\":[{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Custom HTML\",\"fieldname\":\"custom_html_jtLStRVi\",\"fieldtype\":\"HTML\",\"html\":\"
\\n
\\n Billed To\\n
\\n
\",\"custom\":1},{\"label\":\"Customer Name\",\"fieldname\":\"customer_name\",\"fieldtype\":\"Small Text\",\"show_label\":\"hide\",\"custom_style\":\"font-weight: bold;\"},{\"label\":\"Address\",\"fieldname\":\"address_display\",\"fieldtype\":\"Text Editor\",\"show_label\":\"hide\"}],\"width\":53},{\"label\":\"\",\"fields\":[{\"label\":\"Delivery Note\",\"fieldname\":\"name\",\"fieldtype\":\"Data\",\"align\":\"left\",\"label_justify\":\"space-between\",\"custom_style\":\"font-weight: bold;\\nborder-bottom: 1px solid #e5e7eb;\\npadding-bottom: 10px;\",\"label_color\":\"#292929\"},{\"label\":\"Posting Date\",\"fieldname\":\"posting_date\",\"fieldtype\":\"Date\",\"align\":\"left\",\"label_justify\":\"space-between\",\"custom_style\":\"border-bottom: 1px solid #e5e7eb;\\npadding-bottom: 10px;\"},{\"label\":\"Customer's PO No\",\"fieldname\":\"po_no\",\"fieldtype\":\"Small Text\",\"align\":\"left\",\"label_justify\":\"space-between\",\"custom_style\":\"border-bottom: 1px solid #e5e7eb;\\npadding-bottom: 10px;\"}],\"width\":44}],\"show_label\":\"hide\",\"field_orientation\":\"left-right\",\"margin\":{\"top\":15,\"right\":12,\"bottom\":0,\"left\":12}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"\",\"fieldname\":\"items\",\"fieldtype\":\"Table\",\"options\":\"Delivery Note Item\",\"table_columns\":[{\"label\":\"No\",\"fieldname\":\"idx\",\"fieldtype\":\"Data\",\"width\":5},{\"label\":\"Item\",\"fieldname\":\"item_name\",\"fieldtype\":\"Data\",\"width\":21},{\"label\":\"Code\",\"fieldname\":\"item_code\",\"fieldtype\":\"Link\",\"options\":\"Item\",\"width\":12},{\"label\":\"Quantity\",\"fieldname\":\"uom\",\"fieldtype\":\"Link\",\"options\":\"UOM\",\"width\":13,\"merged_fields\":[{\"fieldname\":\"qty\",\"fieldtype\":\"Float\",\"style\":\"secondary\"}],\"merge_direction\":\"horizontal\",\"column_condition\":\"print_settings.print_uom_after_quantity != 1\"},{\"label\":\"Quantity\",\"fieldname\":\"qty\",\"fieldtype\":\"Float\",\"width\":14,\"merged_fields\":[{\"fieldname\":\"uom\",\"fieldtype\":\"Link\",\"style\":\"secondary\"}],\"merge_direction\":\"horizontal\",\"column_condition\":\"print_settings.print_uom_after_quantity\"},{\"label\":\"Rate\",\"fieldname\":\"rate\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"width\":15},{\"label\":\"Amount\",\"fieldname\":\"amount\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"width\":15}],\"table_style\":\"lined\",\"table_bordered\":true,\"table_header\":\"styled\",\"table_cell_padding\":10,\"table_radius\":10,\"table_header_bg\":\"#f3f3f3\",\"show_label\":\"hide\"}]}],\"has_fields\":true,\"margin\":{\"top\":15,\"right\":0,\"bottom\":0,\"left\":0}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[],\"width\":47},{\"label\":\"\",\"fields\":[{\"label\":\"Sub Total\",\"fieldname\":\"total\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"align\":\"left\",\"label_justify\":\"space-between\"},{\"label\":\"Discount\",\"fieldname\":\"discount_amount\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"label_justify\":\"space-between\"},{\"label\":\"\",\"fieldname\":\"repeater\",\"fieldtype\":\"Repeater\",\"source\":\"taxes\",\"repeater_columns\":[{\"template\":[{\"t\":\"s\",\"v\":\"\"},{\"t\":\"f\",\"v\":\"description\"},{\"t\":\"s\",\"v\":\"\"}],\"align\":\"left\",\"width\":60,\"color\":\"#6b7280\"},{\"template\":[{\"t\":\"s\",\"v\":\"\"},{\"t\":\"f\",\"v\":\"tax_amount\"},{\"t\":\"s\",\"v\":\"\"}],\"align\":\"right\",\"width\":40,\"color\":\"#1f2328\"}],\"row_condition\":\"print_settings.print_taxes_with_zero_amount or row.tax_amount != 0\"},{\"label\":\"Grand Total\",\"fieldname\":\"grand_total\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"align\":\"left\",\"label_justify\":\"space-between\",\"custom_style\":\"border-top:1px solid #e5e7eb;margin-top:5px;padding-top:9px;font-weight:700;\",\"label_color\":\"#1f2328\"}],\"width\":50}],\"has_fields\":true,\"field_orientation\":\"left-right\",\"gap\":24,\"margin\":{\"top\":10,\"right\":12,\"bottom\":0,\"left\":0}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"In Words\",\"fieldname\":\"in_words\",\"fieldtype\":\"Small Text\"}]}],\"field_orientation\":\"left-right\",\"margin\":{\"top\":10,\"right\":0,\"bottom\":0,\"left\":0},\"background\":\"#f8f8f8\",\"padding\":{\"top\":5,\"right\":12,\"bottom\":5,\"left\":12}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Divider\",\"fieldname\":\"divider_LeiIYjph\",\"fieldtype\":\"Divider\",\"custom\":1}]}]},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Terms and Conditions Details\",\"fieldname\":\"terms\",\"fieldtype\":\"Text Editor\"}]}],\"margin\":{\"top\":5,\"right\":12,\"bottom\":0,\"left\":12}}],\"footer\":{\"columns\":[{\"label\":\"\",\"fields\":[]}],\"show_label\":\"hide\"}}", + "idx": 0, + "label_color": "#6b7280", + "line_breaks": 0, + "margin_bottom": 8.0, + "margin_left": 8.0, + "margin_right": 8.0, + "margin_top": 10.0, + "modified": "2026-07-24 16:14:44.512564", + "modified_by": "Administrator", + "module": "Stock", + "name": "Delivery Note Classic", + "owner": "Administrator", + "page_number": "Hide", + "pdf_generator": "chrome", + "print_format_builder": 0, + "print_format_builder_beta": 1, + "print_format_for": "DocType", + "print_format_type": "Jinja", + "raw_printing": 0, + "show_label_colon": 0, + "show_section_headings": 0, + "standard": "Yes", + "value_color": "#1f2328" +} diff --git a/erpnext/stock/print_format/delivery_note_modern/__init__.py b/erpnext/stock/print_format/delivery_note_modern/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/erpnext/stock/print_format/delivery_note_modern/delivery_note_modern.json b/erpnext/stock/print_format/delivery_note_modern/delivery_note_modern.json new file mode 100644 index 00000000000..36a42efd291 --- /dev/null +++ b/erpnext/stock/print_format/delivery_note_modern/delivery_note_modern.json @@ -0,0 +1,36 @@ +{ + "absolute_value": 0, + "align_labels_right": 0, + "creation": "2026-07-24 16:10:34.193509", + "custom_format": 0, + "disabled": 0, + "doc_type": "Delivery Note", + "docstatus": 0, + "doctype": "Print Format", + "font": "Inter", + "font_size": 14, + "format_data": "{\"header\":{\"columns\":[{\"label\":\"\",\"fields\":[]}]},\"sections\":[{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Custom HTML\",\"fieldname\":\"custom_html_jPuFiKyJ\",\"fieldtype\":\"HTML\",\"html\":\"
\\n
\\n Delivery Note\\n
\\n
\\n {{ doc.name }}\\n
\\n
\",\"custom\":1}]}],\"margin\":{\"top\":10,\"right\":0,\"bottom\":10,\"left\":0}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Divider\",\"fieldname\":\"divider_QbdbRgGE\",\"fieldtype\":\"Divider\",\"custom\":1}]}]},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Billed To\",\"fieldname\":\"customer_name\",\"fieldtype\":\"Small Text\",\"custom_style\":\"flex-direction:column;align-items:flex-start;gap:3px;\"},{\"label\":\"Address\",\"fieldname\":\"address_display\",\"fieldtype\":\"Text Editor\",\"show_label\":\"hide\"}],\"width\":56},{\"label\":\"\",\"fields\":[{\"label\":\"Posting Date\",\"fieldname\":\"posting_date\",\"fieldtype\":\"Date\",\"align\":\"left\",\"label_justify\":\"space-between\"},{\"label\":\"Customer's PO No\",\"fieldname\":\"po_no\",\"fieldtype\":\"Small Text\",\"align\":\"left\",\"label_justify\":\"space-between\"},{\"label\":\"Status\",\"fieldname\":\"status\",\"fieldtype\":\"Select\",\"options\":\"\\nDraft\\nTo Bill\\nPartially Billed\\nCompleted\\nReturn\\nReturn Issued\\nCancelled\\nClosed\",\"label_justify\":\"space-between\",\"visible_if\":\"\"}],\"width\":38}],\"has_fields\":true,\"field_orientation\":\"left-right\",\"gap\":44,\"margin\":{\"top\":15,\"right\":12,\"bottom\":0,\"left\":12}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"\",\"fieldname\":\"items\",\"fieldtype\":\"Table\",\"options\":\"Delivery Note Item\",\"table_columns\":[{\"label\":\"No\",\"fieldname\":\"idx\",\"fieldtype\":\"Data\",\"width\":5},{\"label\":\"Item\",\"fieldname\":\"item_name\",\"fieldtype\":\"Data\",\"width\":25,\"merged_fields\":[{\"fieldname\":\"description\",\"fieldtype\":\"Text Editor\",\"style\":\"muted-sm\"}]},{\"label\":\"Code\",\"fieldname\":\"item_code\",\"fieldtype\":\"Link\",\"options\":\"Item\",\"width\":12},{\"label\":\"Quantity\",\"fieldname\":\"uom\",\"fieldtype\":\"Link\",\"options\":\"UOM\",\"width\":12,\"merged_fields\":[{\"fieldname\":\"qty\",\"fieldtype\":\"Float\",\"style\":\"secondary\"}],\"merge_direction\":\"horizontal\",\"column_condition\":\"print_settings.print_uom_after_quantity != 1\"},{\"label\":\"Quantity\",\"fieldname\":\"qty\",\"fieldtype\":\"Float\",\"width\":12,\"merged_fields\":[{\"fieldname\":\"uom\",\"fieldtype\":\"Link\",\"style\":\"secondary\"}],\"merge_direction\":\"horizontal\",\"column_condition\":\"print_settings.print_uom_after_quantity\"},{\"label\":\"Rate\",\"fieldname\":\"rate\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"width\":14},{\"label\":\"Amount\",\"fieldname\":\"amount\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"width\":15}],\"table_bordered\":false,\"table_header\":\"styled\",\"table_cell_padding\":10,\"table_radius\":8,\"table_header_bg\":\"#f3f3f3\",\"table_border_color\":\"#f3f3f3\",\"show_label\":\"hide\",\"custom_style\":\"\"}]}],\"has_fields\":true,\"margin\":{\"top\":0,\"right\":0,\"bottom\":0,\"left\":0}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[],\"width\":45},{\"label\":\"\",\"fields\":[{\"label\":\"Sub Total\",\"fieldname\":\"total\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"align\":\"left\",\"label_justify\":\"space-between\",\"custom_style\":\"\"},{\"label\":\"Discount\",\"fieldname\":\"discount_amount\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"label_justify\":\"space-between\",\"custom_style\":\"\"},{\"label\":\"\",\"fieldname\":\"repeater\",\"fieldtype\":\"Repeater\",\"source\":\"taxes\",\"repeater_columns\":[{\"template\":[{\"t\":\"s\",\"v\":\"\"},{\"t\":\"f\",\"v\":\"description\"},{\"t\":\"s\",\"v\":\"\"}],\"align\":\"left\",\"width\":60,\"color\":\"#6b7280\"},{\"template\":[{\"t\":\"s\",\"v\":\"\"},{\"t\":\"f\",\"v\":\"tax_amount\"},{\"t\":\"s\",\"v\":\"\"}],\"align\":\"right\",\"width\":40,\"color\":\"#1f2328\"}],\"row_condition\":\"print_settings.print_taxes_with_zero_amount or row.tax_amount != 0\",\"custom_style\":\"\"},{\"label\":\"Grand Total\",\"fieldname\":\"grand_total\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"align\":\"left\",\"label_justify\":\"space-between\",\"custom_style\":\"border-top:1px solid #e5e7eb;margin-top:5px;padding-top:9px;font-weight:700;\",\"label_color\":\"#1f2328\"}],\"width\":49}],\"has_fields\":true,\"field_orientation\":\"left-right\",\"gap\":44,\"margin\":{\"top\":15,\"right\":12,\"bottom\":0,\"left\":0}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"In Words\",\"fieldname\":\"in_words\",\"fieldtype\":\"Small Text\",\"show_label\":\"hide\"}]}],\"background\":\"#f8f8f8\",\"padding\":{\"top\":5,\"right\":12,\"bottom\":5,\"left\":12},\"margin\":{\"top\":10,\"right\":0,\"bottom\":0,\"left\":0}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Divider\",\"fieldname\":\"divider_IMskVBrj\",\"fieldtype\":\"Divider\",\"custom\":1}]}]},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Terms and Conditions Details\",\"fieldname\":\"terms\",\"fieldtype\":\"Text Editor\"}]}],\"margin\":{\"top\":5,\"right\":12,\"bottom\":0,\"left\":12}}],\"footer\":{\"columns\":[{\"label\":\"\",\"fields\":[]}],\"show_label\":\"hide\"}}", + "idx": 0, + "label_color": "#6b7280", + "line_breaks": 0, + "margin_bottom": 8.0, + "margin_left": 8.0, + "margin_right": 8.0, + "margin_top": 15.0, + "modified": "2026-07-24 16:14:44.535589", + "modified_by": "Administrator", + "module": "Stock", + "name": "Delivery Note Modern", + "owner": "Administrator", + "page_number": "Hide", + "pdf_generator": "chrome", + "print_format_builder": 0, + "print_format_builder_beta": 1, + "print_format_for": "DocType", + "print_format_type": "Jinja", + "raw_printing": 0, + "show_label_colon": 0, + "show_section_headings": 0, + "standard": "Yes", + "value_color": "#1f2328" +} diff --git a/erpnext/stock/print_format/delivery_note_modern_with_images/__init__.py b/erpnext/stock/print_format/delivery_note_modern_with_images/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/erpnext/stock/print_format/delivery_note_modern_with_images/delivery_note_modern_with_images.json b/erpnext/stock/print_format/delivery_note_modern_with_images/delivery_note_modern_with_images.json new file mode 100644 index 00000000000..3a2608800b4 --- /dev/null +++ b/erpnext/stock/print_format/delivery_note_modern_with_images/delivery_note_modern_with_images.json @@ -0,0 +1,36 @@ +{ + "absolute_value": 0, + "align_labels_right": 0, + "creation": "2026-07-24 16:10:34.079390", + "custom_format": 0, + "disabled": 0, + "doc_type": "Delivery Note", + "docstatus": 0, + "doctype": "Print Format", + "font": "Inter", + "font_size": 13, + "format_data": "{\"header\":{\"columns\":[{\"label\":\"\",\"fields\":[]}]},\"sections\":[{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Custom HTML\",\"fieldname\":\"custom_html_WJGFzvLg\",\"fieldtype\":\"HTML\",\"html\":\"
\\n
\\n Delivery Note\\n
\\n
\\n {{ doc.name }}\\n
\\n
\",\"custom\":1}]}],\"margin\":{\"top\":10,\"right\":0,\"bottom\":10,\"left\":0}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Divider\",\"fieldname\":\"divider_hXQEMfIw\",\"fieldtype\":\"Divider\",\"custom\":1}]}]},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Custom HTML\",\"fieldname\":\"custom_html_WbBDnaVv_lSJFDiWO\",\"fieldtype\":\"HTML\",\"html\":\"
\\n
\\n Billed To\\n
\\n
\",\"custom_style\":\"\",\"custom\":1},{\"label\":\"Customer\",\"fieldname\":\"customer_name\",\"fieldtype\":\"Small Text\",\"show_label\":\"hide\",\"align\":\"left\",\"label_justify\":\"\",\"custom_style\":\"font-weight: bold;\\n\"},{\"label\":\"Bill To\",\"fieldname\":\"address_display\",\"fieldtype\":\"Text Editor\",\"show_label\":\"hide\",\"align\":\"left\"}],\"width\":67},{\"label\":\"\",\"fields\":[{\"label\":\"Posting Date\",\"fieldname\":\"posting_date\",\"fieldtype\":\"Date\",\"align\":\"right\",\"label_justify\":\"space-between\",\"label_gap\":null,\"custom_style\":\"\"},{\"label\":\"Customer's PO No\",\"fieldname\":\"po_no\",\"fieldtype\":\"Small Text\",\"show_label\":\"show\",\"align\":\"right\",\"label_justify\":\"space-between\",\"label_gap\":20,\"custom_style\":\"\"},{\"label\":\"Status\",\"fieldname\":\"status\",\"fieldtype\":\"Select\",\"options\":\"\\nDraft\\nTo Bill\\nPartially Billed\\nCompleted\\nReturn\\nReturn Issued\\nCancelled\\nClosed\",\"align\":\"right\"}],\"width\":33}],\"has_fields\":true,\"label_case\":\"normal\",\"background\":\"\",\"field_orientation\":\"\",\"gap\":0,\"padding\":{\"top\":0,\"right\":0,\"bottom\":0,\"left\":0},\"inner_rows\":true,\"inner_cols\":true,\"cell_padding\":0,\"border\":{\"width\":1,\"color\":\"#e5e7eb\",\"radius\":6},\"show_label\":\"show\",\"margin\":{\"top\":15,\"right\":12,\"bottom\":0,\"left\":12},\"custom_style\":\"\"},{\"label\":\"Item\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"\",\"fieldname\":\"items\",\"fieldtype\":\"Table\",\"options\":\"Delivery Note Item\",\"table_columns\":[{\"label\":\"No.\",\"fieldname\":\"idx\",\"fieldtype\":\"Data\",\"width\":5},{\"label\":\"Item\",\"fieldname\":\"item_name\",\"fieldtype\":\"Data\",\"width\":30,\"merged_fields\":[{\"fieldname\":\"image\",\"fieldtype\":\"Attach\",\"style\":\"secondary\"},{\"fieldname\":\"item_code\",\"fieldtype\":\"Link\",\"style\":\"secondary\"},{\"fieldname\":\"description\",\"fieldtype\":\"Text Editor\",\"style\":\"muted-sm\"}],\"image_size\":44},{\"label\":\"Quantity\",\"fieldname\":\"uom\",\"fieldtype\":\"Link\",\"options\":\"UOM\",\"width\":10,\"merged_fields\":[{\"fieldname\":\"qty\",\"fieldtype\":\"Float\",\"style\":\"secondary\"}],\"merge_direction\":\"horizontal\",\"column_condition\":\"print_settings.print_uom_after_quantity != 1\"},{\"label\":\"Quantity\",\"fieldname\":\"qty\",\"fieldtype\":\"Float\",\"width\":10,\"merged_fields\":[{\"fieldname\":\"uom\",\"fieldtype\":\"Link\",\"style\":\"secondary\"}],\"merge_direction\":\"horizontal\",\"column_condition\":\"print_settings.print_uom_after_quantity\"},{\"label\":\"Rate\",\"fieldname\":\"rate\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"width\":15},{\"label\":\"Amount\",\"fieldname\":\"amount\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"width\":15}],\"table_style\":\"lined\",\"table_bordered\":false,\"table_header\":\"styled\",\"table_cell_padding\":10,\"table_radius\":8}]}],\"has_fields\":true,\"gap\":12,\"show_label\":\"hide\",\"margin\":{\"top\":15,\"right\":0,\"bottom\":0,\"left\":0}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[],\"width\":51},{\"label\":\"\",\"fields\":[{\"label\":\"Sub Total\",\"fieldname\":\"total\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"align\":\"left\",\"label_justify\":\"space-between\",\"label_gap\":null},{\"label\":\"Discount\",\"fieldname\":\"discount_amount\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"align\":\"left\",\"label_justify\":\"space-between\",\"label_gap\":0,\"custom_style\":\"\"},{\"label\":\"\",\"fieldname\":\"repeater\",\"fieldtype\":\"Repeater\",\"source\":\"taxes\",\"repeater_columns\":[{\"template\":[{\"t\":\"s\",\"v\":\"\"},{\"t\":\"f\",\"v\":\"description\"},{\"t\":\"s\",\"v\":\"\"}],\"align\":\"left\",\"width\":70,\"color\":\"#6b7280\"},{\"template\":[{\"t\":\"s\",\"v\":\"\"},{\"t\":\"f\",\"v\":\"tax_amount\"},{\"t\":\"s\",\"v\":\"\"}],\"align\":\"right\",\"color\":\"#1f2328\",\"width\":30}],\"custom_style\":\"\",\"row_condition\":\"print_settings.print_taxes_with_zero_amount or row.tax_amount != 0\"},{\"label\":\"Grand Total\",\"fieldname\":\"grand_total\",\"fieldtype\":\"Currency\",\"options\":\"currency\",\"align\":\"left\",\"label_justify\":\"space-between\",\"label_gap\":null,\"custom_style\":\"border-top: 1px solid #e5e7eb;\\nmargin-top:5px;\\nfont-weight: bold;\\npadding-top:9px\\n\"}],\"width\":49}],\"field_orientation\":\"left-right\",\"margin\":{\"top\":15,\"right\":12,\"bottom\":0,\"left\":12}},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"In Words:\",\"fieldname\":\"in_words\",\"fieldtype\":\"Small Text\",\"show_label\":\"hide\",\"align\":\"left\",\"label_justify\":\"\",\"label_gap\":2,\"custom_style\":\"\"}]}],\"field_orientation\":\"left-right\",\"background\":\"#f8f8f8\",\"margin\":{\"top\":10,\"right\":0,\"bottom\":0,\"left\":0},\"padding\":{\"top\":5,\"right\":12,\"bottom\":5,\"left\":12},\"gap\":0},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Divider\",\"fieldname\":\"divider_cdcIgUdZ\",\"fieldtype\":\"Divider\",\"custom\":1}]}]},{\"label\":\"\",\"columns\":[{\"label\":\"\",\"fields\":[{\"label\":\"Terms and Conditions Details\",\"fieldname\":\"terms\",\"fieldtype\":\"Text Editor\"}]}],\"margin\":{\"top\":5,\"right\":12,\"bottom\":0,\"left\":12}}],\"footer\":{\"columns\":[{\"label\":\"\",\"fields\":[]}],\"show_label\":\"hide\"}}", + "idx": 0, + "label_color": "#6b7280", + "line_breaks": 0, + "margin_bottom": 8.0, + "margin_left": 8.0, + "margin_right": 8.0, + "margin_top": 15.0, + "modified": "2026-07-24 16:14:44.560506", + "modified_by": "Administrator", + "module": "Stock", + "name": "Delivery Note Modern with Images", + "owner": "Administrator", + "page_number": "Hide", + "pdf_generator": "chrome", + "print_format_builder": 0, + "print_format_builder_beta": 1, + "print_format_for": "DocType", + "print_format_type": "Jinja", + "raw_printing": 0, + "show_label_colon": 0, + "show_section_headings": 0, + "standard": "Yes", + "value_color": "#1f2328" +}