From 71349d221ba8d6f54b53a7b2fe09aaacb09e5cd4 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 3 Jul 2015 10:43:35 +0530 Subject: [PATCH] [fix] item image in mozilla #3412 #3413 --- .../print_formats/includes/item_table_description.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/erpnext/templates/print_formats/includes/item_table_description.html b/erpnext/templates/print_formats/includes/item_table_description.html index f259626661..ece5386538 100644 --- a/erpnext/templates/print_formats/includes/item_table_description.html +++ b/erpnext/templates/print_formats/includes/item_table_description.html @@ -1,6 +1,7 @@ {% if doc.in_format_data("image") and doc.get("image") and not doc.is_print_hide("image")-%}
- + +
{%- endif %}
@@ -8,14 +9,14 @@
{{ doc.item_code }}
{%- endif %} {% if (doc.in_format_data("item_name") and not doc.is_print_hide("item_name") and - (not doc.in_format_data("item_code") or doc.is_print_hide("item_code") + (not doc.in_format_data("item_code") or doc.is_print_hide("item_code") or doc.item_code != doc.item_name)) -%}
{{ doc.get_formatted("item_name") }}
{%- endif %} {% if (doc.in_format_data("description") and doc.description and ( ( - (not doc.in_format_data("item_code") or doc.is_print_hide("item_code")) and + (not doc.in_format_data("item_code") or doc.is_print_hide("item_code")) and (not doc.in_format_data("item_name") or doc.is_print_hide("item_name")) ) or not (doc.item_code == doc.item_name == doc.description) ))