[fix] Financial report column values during print (#13627)

This commit is contained in:
Faris Ansari 2018-04-12 17:28:40 +05:30 committed by GitHub
parent a0bbc0846b
commit f8dd4c2d7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@
</td> </td>
{% for(var i=2, l=report.columns.length; i<l; i++) { %} {% for(var i=2, l=report.columns.length; i<l; i++) { %}
<td class="text-right"> <td class="text-right">
{% var fieldname = report.columns[i].field; %} {% var fieldname = report.columns[i].field || report.columns[i].fieldname; %}
{% if (!is_null(row[fieldname])) { %} {% if (!is_null(row[fieldname])) { %}
{%= format_number(row[fieldname], null)%} {%= format_number(row[fieldname], null)%}
{% } %} {% } %}