From 4f7feddb6a0de89eaf7aa80a675328a2515e7317 Mon Sep 17 00:00:00 2001 From: Mainul Islam Date: Wed, 19 Jul 2017 16:26:41 +0600 Subject: [PATCH] [Print format] Translate section headings, hide sections with no data (#3697) * Section label set as translatable * Show section title if hase data in section other --- frappe/templates/print_formats/standard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/templates/print_formats/standard.html b/frappe/templates/print_formats/standard.html index 971967e2b1..43fe020b2a 100644 --- a/frappe/templates/print_formats/standard.html +++ b/frappe/templates/print_formats/standard.html @@ -23,8 +23,8 @@ {% for section in page %}
{%- if doc._line_breaks and loop.index != 1 -%}
{%- endif -%} - {%- if doc._show_section_headings and section.label -%} -

{{ section.label }}

+ {%- if doc._show_section_headings and section.label and section.has_data -%} +

{{ _(section.label) }}

{%- endif -%} {% for column in section.columns %}