From ad61a287303d57272a3d095b2b3267b54dbbdb19 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 14 Mar 2016 18:20:29 +0530 Subject: [PATCH] [fix] [hot] compact print: check in_format_data for print format builder prints --- .../print_formats/includes/item_table_description.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/templates/print_formats/includes/item_table_description.html b/erpnext/templates/print_formats/includes/item_table_description.html index b7437a7f82d..99215e8fe91 100644 --- a/erpnext/templates/print_formats/includes/item_table_description.html +++ b/erpnext/templates/print_formats/includes/item_table_description.html @@ -35,7 +35,7 @@ {% if compact -%} {%- for fieldname in doc.flags.show_in_description -%} - {% if doc.get(fieldname) -%} + {% if doc.get(fieldname) and doc.in_format_data(fieldname) -%}

{{ _(doc.meta.get_label(fieldname)) }}: {{ doc.get_formatted(fieldname, translated=True) }}