diff --git a/erpnext/templates/print_formats/includes/item_table_description.html b/erpnext/templates/print_formats/includes/item_table_description.html index 116523ca044..e7fcb65aa9c 100644 --- a/erpnext/templates/print_formats/includes/item_table_description.html +++ b/erpnext/templates/print_formats/includes/item_table_description.html @@ -1,11 +1,15 @@ +{%- set std_fields = ("item_code", "item_name", "description", "qty", "rate", "amount", "stock_uom", "uom") -%} +{%- set customised_print_preview = frappe.utils.cint(frappe.db.get_value("Features Setup", None, "customised_print_preview")) -%} + {% if doc.in_format_data("image") and doc.get("image") and not doc.is_print_hide("image")-%}
{{ doc.get_formatted("description") }}
- {%- endif %} + {%- endif %} + {% if (customised_print_preview == 1) -%} + {%- for field in doc.hide_in_print_layout -%} + {%- if (field not in std_fields) and + (doc.get(field) not in (None, "", 0)) -%} +