diff --git a/erpnext/templates/print_formats/includes/item_table_description.html b/erpnext/templates/print_formats/includes/item_table_description.html index e7fcb65aa9c..2a6ef42dbff 100644 --- a/erpnext/templates/print_formats/includes/item_table_description.html +++ b/erpnext/templates/print_formats/includes/item_table_description.html @@ -1,5 +1,5 @@ {%- 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")) -%} +{%- set compact_item_view = frappe.utils.cint(frappe.db.get_value("Features Setup", None, "compact_item_view")) -%} {% if doc.in_format_data("image") and doc.get("image") and not doc.is_print_hide("image")-%}
{{ doc.get_formatted("description") }}
{%- endif %} - {% if (customised_print_preview == 1) -%} + {% if (compact_item_view == 1) -%} {%- for field in doc.hide_in_print_layout -%} {%- if (field not in std_fields) and (doc.get(field) not in (None, "", 0)) -%}