diff --git a/erpnext/templates/print_formats/includes/item_grid.html b/erpnext/templates/print_formats/includes/item_grid.html index 7e1d1a62cfb..0c912ca811f 100644 --- a/erpnext/templates/print_formats/includes/item_grid.html +++ b/erpnext/templates/print_formats/includes/item_grid.html @@ -6,17 +6,19 @@ - - - - - {% if not hide_rate -%} - - {%- endif %} - {% if not hide_amount -%} - - {%- endif %} - + {% if data|length -%} + + + + + {% if not hide_rate -%} + + {%- endif %} + {% if not hide_amount -%} + + {%- endif %} + + {%- endif %} {%- for row in data -%}
{{ _("Sr") }}{{ _("Item") }}{{ _(data[0].meta.get_label("qty")) }}{{ _(data[0].meta.get_label("rate")) }}{{ _(data[0].meta.get_label("amount")) }}
{{ _("Sr") }}{{ _("Item") }}{{ _(data[0].meta.get_label("qty")) }}{{ _(data[0].meta.get_label("rate")) }}{{ _(data[0].meta.get_label("amount")) }}
{{ row.idx }}