From 541abf56879ec0d59b3265b3f2d0b43fe398408e Mon Sep 17 00:00:00 2001 From: ShashaQin Date: Fri, 12 Feb 2016 09:22:55 +0800 Subject: [PATCH] Update item_table_description.html --- .../print_formats/includes/item_table_description.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")-%}
@@ -26,7 +26,7 @@ -%}

{{ 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)) -%}