From f6f2fc4079c7d7f62891b4285b96a0d24dd5d2fd Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 28 Jan 2015 16:44:54 +0530 Subject: [PATCH] Print format: show item table header as per meta label --- .../templates/print_formats/includes/item_grid.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/erpnext/templates/print_formats/includes/item_grid.html b/erpnext/templates/print_formats/includes/item_grid.html index 1d09f73feca..7e1d1a62cfb 100644 --- a/erpnext/templates/print_formats/includes/item_grid.html +++ b/erpnext/templates/print_formats/includes/item_grid.html @@ -9,9 +9,13 @@ {{ _("Sr") }} {{ _("Item") }} - {{ _("Qty") }} - {% if not hide_rate -%}{{ _("Rate") }}{%- endif %} - {% if not hide_amount -%}{{ _("Amount") }}{%- endif %} + {{ _(data[0].meta.get_label("qty")) }} + {% if not hide_rate -%} + {{ _(data[0].meta.get_label("rate")) }} + {%- endif %} + {% if not hide_amount -%} + {{ _(data[0].meta.get_label("amount")) }} + {%- endif %} {%- for row in data -%}