diff --git a/grails-app/taglib/au/org/ala/merit/DashboardTagLib.groovy b/grails-app/taglib/au/org/ala/merit/DashboardTagLib.groovy index e5fbe6d35..e8b36fa17 100644 --- a/grails-app/taglib/au/org/ala/merit/DashboardTagLib.groovy +++ b/grails-app/taglib/au/org/ala/merit/DashboardTagLib.groovy @@ -147,10 +147,12 @@ class DashboardTagLib { percentComplete = Math.min(100, percentComplete) percentComplete = Math.max(0, percentComplete) + int maxDecimalPlaces = score.decimalPlaces != null ? score.decimalPlaces : 2 + out << """
- ${g.formatNumber(type:'number',number:result, maxFractionDigits: 2, groupingUsed:true)}/${g.formatNumber(type:'number',number:target, maxFractionDigits: 2, groupingUsed:true)} + ${g.formatNumber(type:'number',number:result, maxFractionDigits: maxDecimalPlaces, groupingUsed:true)}/${g.formatNumber(type:'number',number:target, maxFractionDigits: maxDecimalPlaces, groupingUsed:true)}
""" }