mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
Use format_currency only if fieldtype is currency
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
{% for(var i=1, l=report.columns.length; i<l; i++) { %}
|
{% for(var i=1, 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; %}
|
||||||
{% if (!isNaN(row[fieldname])) { %}
|
{% if (report.columns[i].fieldtype=='Currency' && !isNaN(row[fieldname])) { %}
|
||||||
{%= format_currency(row[fieldname]) %}
|
{%= format_currency(row[fieldname]) %}
|
||||||
{% } else { %}
|
{% } else { %}
|
||||||
{% if (!is_null(row[fieldname])) { %}
|
{% if (!is_null(row[fieldname])) { %}
|
||||||
|
|||||||
Reference in New Issue
Block a user