adding 1 decimal to costs
This commit is contained in:
@@ -88,12 +88,12 @@ ViewDashboardPresenter.prototype.dashboardIndicatorsViewModel = function(data) {
|
||||
|
||||
//rounding
|
||||
newObject.comparative = Math.round(newObject.comparative*100)/100;
|
||||
newObject.comparative = ((newObject.comparative > 0)? "+": "") + newObject.comparative;
|
||||
newObject.comparative = ((newObject.comparative > 0) ? "+": "") + newObject.comparative;
|
||||
|
||||
newObject.percentComparative = (newObject.percentComparative != '--')
|
||||
? '(' + newObject.percentComparative + '%)'
|
||||
: "";
|
||||
newObject.percentComparative = (newObject.comparative == 0)
|
||||
newObject.percentComparative = (newObject.comparative == 0 && newObject.percentComparative != '')
|
||||
? "(0%)"
|
||||
: newObject.percentComparative;
|
||||
|
||||
|
||||
@@ -535,7 +535,9 @@ var defaultEndDate = function () {
|
||||
|
||||
var fillDashboardsList = function (presenterData) {
|
||||
if (presenterData == null || presenterData.length == 0) {
|
||||
$('#dashboardsList').append(G_STRING['ID_NO_DATA_TO_DISPLAY']);
|
||||
$('#dashboardMessage').text(G_STRING['ID_GRID_PAGE_NO_DASHBOARD_MESSAGE']);
|
||||
$('#titleH4').text(G_STRING['ID_GRID_PAGE_NO_DASHBOARD_MESSAGE']);
|
||||
$('#compareIndicators').hide();
|
||||
}
|
||||
_.templateSettings.variable = "dashboard";
|
||||
var template = _.template ($("script.dashboardButtonTemplate").html())
|
||||
|
||||
Reference in New Issue
Block a user