From 85eefadadac1bf7afc757373e0556f32261dc8f2 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 28 Jul 2014 21:17:20 +0530 Subject: [PATCH] [fix] [print] Print Hide Item Code --- erpnext/templates/print_formats/includes/item_grid.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/templates/print_formats/includes/item_grid.html b/erpnext/templates/print_formats/includes/item_grid.html index df1859cde8..1acede89a6 100644 --- a/erpnext/templates/print_formats/includes/item_grid.html +++ b/erpnext/templates/print_formats/includes/item_grid.html @@ -17,8 +17,8 @@ {{ row.idx }} {{ row.item_name }} - {% if row.item_code != row.item_name -%} -
Item Code: {{ row.item_code}} + {% if row.item_code != row.item_name and not row.meta.get_field("item_code").print_hide -%} +
Item Code: {{ row.item_code }} {%- endif %}