Revert "rounding two 2 decimals the indicator's old value"
This reverts commit 67b4e31a3075cca526a063cfed85f70e5a00cabc.
This commit is contained in:
@@ -70,6 +70,7 @@ ViewDashboardPresenter.prototype.dashboardIndicatorsViewModel = function(data) {
|
|||||||
"DAS_IND_PERCENT_VARIATION" : "percentComparative",
|
"DAS_IND_PERCENT_VARIATION" : "percentComparative",
|
||||||
"DAS_IND_DIRECTION" : "direction",
|
"DAS_IND_DIRECTION" : "direction",
|
||||||
"DAS_IND_VALUE" : "value",
|
"DAS_IND_VALUE" : "value",
|
||||||
|
"DAS_IND_OLD_VALUE" : "oldValue",
|
||||||
"DAS_IND_X" : "x",
|
"DAS_IND_X" : "x",
|
||||||
"DAS_IND_Y" : "y",
|
"DAS_IND_Y" : "y",
|
||||||
"DAS_IND_WIDTH" : "width",
|
"DAS_IND_WIDTH" : "width",
|
||||||
@@ -108,10 +109,6 @@ ViewDashboardPresenter.prototype.dashboardIndicatorsViewModel = function(data) {
|
|||||||
: newObject.percentComparative;
|
: newObject.percentComparative;
|
||||||
|
|
||||||
newObject.value = that.roundedIndicatorValue(newObject.value);
|
newObject.value = that.roundedIndicatorValue(newObject.value);
|
||||||
|
|
||||||
//we don't use the database values to avoid rounding differences
|
|
||||||
newObject.oldValue = newObject.value - newObject.comparative
|
|
||||||
|
|
||||||
newObject.favorite = 0;
|
newObject.favorite = 0;
|
||||||
|
|
||||||
that.setStatusButtonWidthsAndDisplayValues(newObject);
|
that.setStatusButtonWidthsAndDisplayValues(newObject);
|
||||||
|
|||||||
@@ -53,11 +53,10 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-3">
|
<div class="col-xs-3">
|
||||||
<div class="huge ind-value-selector"><%- indicator.value %></div>
|
<div class="huge ind-value-selector"><%- indicator.value %></div>
|
||||||
<div><%- indicator.oldValue %> </div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-9 text-right"><i class="ind-symbol-selector fa fa-chevron-up fa-3x"></i>
|
<div class="col-xs-9 text-right"><i class="ind-symbol-selector fa fa-chevron-up fa-3x"></i>
|
||||||
<div class="small ind-comparative-selector">
|
<div class="small ind-comparative-selector">
|
||||||
<%- indicator.oldValue %> <%- indicator.comparative %> <%- indicator.percentComparative %>
|
<%- indicator.comparative %> <%- indicator.percentComparative %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user