From 72427d0b2577095c01a5eeeecc706aa5b085efc0 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Fri, 26 Jul 2019 12:31:42 +0530 Subject: [PATCH] fix: Unknown string format:', u'Total' --- frappe/templates/emails/auto_email_report.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/frappe/templates/emails/auto_email_report.html b/frappe/templates/emails/auto_email_report.html index 50ab5b1fe3..a658c988a9 100644 --- a/frappe/templates/emails/auto_email_report.html +++ b/frappe/templates/emails/auto_email_report.html @@ -33,9 +33,15 @@ {% for row in data %} {% for col in columns %} - - {{- frappe.format(row[col.fieldname], col, row) -}} - + {% if row[col.fieldname] == 'Total' %} + + {{- row[col.fieldname] -}} + + {% else %} + + {{- frappe.format(row[col.fieldname], col, row) -}} + + {% endif %} {% endfor %} {% endfor %}