From e481a211b16bb8420d116a63e187aaf89f5de047 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 1 Jun 2015 17:12:43 +0530 Subject: [PATCH] item table print template --- .../print_formats/includes/item_table_description.html | 9 +++++++-- 1 file changed, 7 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 107abe03c06..f259626661c 100644 --- a/erpnext/templates/print_formats/includes/item_table_description.html +++ b/erpnext/templates/print_formats/includes/item_table_description.html @@ -13,8 +13,13 @@
{{ doc.get_formatted("item_name") }}
{%- endif %} {% if (doc.in_format_data("description") and doc.description and - ((not doc.in_format_data("item_code") and not doc.in_format_data("item_name")) - or not (doc.item_code == doc.item_name == doc.description))) -%} + ( + ( + (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) + )) + -%}

{{ doc.get_formatted("description") }}

{%- endif %}