fix: Report Print format for indented rows (#7505)
This commit is contained in:
parent
da2d538485
commit
e4f70da7cd
1 changed files with 11 additions and 9 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue