{% if title %}
# | {% for col in columns %} {% if col.name && col._id !== "_check" %}{{ __(col.name) }} | {% endif %} {% endfor %}
---|---|
{{ row._index + 1 }} | {% for col in columns %} {% if col.name && col._id !== "_check" %} {% var value = col.fieldname ? row[col.fieldname] : row[col.id]; %}{% format_data = row.is_total_row && ["Currency", "Float"].includes(col.fieldtype) ? data[0] : row %} {% if (row.is_total_row && col._index == 0) { %} {{ __("Total") }} {% } else { %} {{ col.formatter ? col.formatter(row._index, col._index, value, col, format_data, true) : col.format ? col.format(value, row, col, format_data) : col.docfield ? frappe.format(value, col.docfield) : value }} {% } %} | {% endif %} {% endfor %}