fix: Report Print format for indented rows (#7505)

This commit is contained in:
Anurag Mishra 2019-05-16 17:37:37 +05:30 committed by Faris Ansari
parent da2d538485
commit e4f70da7cd

View file

@ -31,15 +31,17 @@
{% var value = col.fieldname ? row[col.fieldname] : row[col.id]; %}
<td>
{{
col.formatter
? col.formatter(row._index, col._index, value, col, row, true)
: col.format
? col.format(value, row, col, data)
: col.docfield
? frappe.format(value, col.docfield)
: value
}}
<span {% if col._index == 0 %} style="padding-left: {%= cint(row.indent) * 2 %}em" {% endif %}>
{{
col.formatter
? col.formatter(row._index, col._index, value, col, row, true)
: col.format
? col.format(value, row, col, data)
: col.docfield
? frappe.format(value, col.docfield)
: value
}}
</span>
</td>
{% endif %}
{% endfor %}