Update item_table_description.html

This commit is contained in:
ShashaQin 2016-02-12 09:22:55 +08:00 committed by Anand Doshi
parent fd08750e1c
commit 541abf5687

View File

@ -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")-%}
<div class="pull-left" style="max-width: 38.2%; margin-right: 10px;">
@ -26,7 +26,7 @@
-%}
<p>{{ doc.get_formatted("description") }}</p>
{%- 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)) -%}