From 34ad2e6a60a458fa78e36c418e7bd53edd57836c Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 5 Oct 2017 15:28:43 +0530 Subject: [PATCH] Use format_currency only if fieldtype is currency --- .../report/salary_register/salary_register.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/erpnext/hr/report/salary_register/salary_register.html b/erpnext/hr/report/salary_register/salary_register.html index 6c372b7501..4c7e1d1d3a 100644 --- a/erpnext/hr/report/salary_register/salary_register.html +++ b/erpnext/hr/report/salary_register/salary_register.html @@ -12,21 +12,21 @@ {% } %} - + {% for(var j=0, k=data.length; j {% for(var i=1, l=report.columns.length; i {% var fieldname = report.columns[i].field; %} - {% if (!isNaN(row[fieldname])) { %} - {%= format_currency(row[fieldname]) %} - {% } else { %} - {% if (!is_null(row[fieldname])) { %} - {%= row[fieldname] %} - {% } %} + {% if (report.columns[i].fieldtype=='Currency' && !isNaN(row[fieldname])) { %} + {%= format_currency(row[fieldname]) %} + {% } else { %} + {% if (!is_null(row[fieldname])) { %} + {%= row[fieldname] %} + {% } %} {% } %} {% } %}