{% macro get_alignment(col) %} {%- if col.fieldtype in ('Int', 'Float', 'Currency', 'Check') %} class="text-right" {% endif -%} {% endmacro %} {% if columns %} {% set max_width = '100%' if columns|length > 3 else '600px' %} {% else %} {% set max_width = '600px' %} {% endif %} {% if description %} {% endif %}
{{ title }}
{{ description }}
{% if data %} {% for col in columns %} {% endfor %} {% for row in data %} {% for col in columns %} {% if row[col.fieldname] == 'Total' %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{- _(col.label) -}}
{{- row[col.fieldname] -}} {{- frappe.format(row[col.fieldname], col, row) -}}
{% endif %} {% if not frappe.db.get_value("System Settings", "System Settings", "hide_footer_in_auto_email_reports")|int %}

{{ _("This report was generated on {0}").format(date_time) }}

{{ _("View report in your browser") }}: {{report_name}}

{{ _("Edit Auto Email Report Settings") }}: {{edit_report_settings}}

{% endif %}