Skip to content
Snippets Groups Projects
Commit 3d330dbb authored by Sebastian Pongratz's avatar Sebastian Pongratz :ping_pong:
Browse files

Merge branch 'sales_1083700_ClassificationFixForeCastTotalIndicator' into '2021.1'

Sales 1083700 classification fix fore cast total indicator

See merge request xrm/basic!1118
parents 94e59437 d92c85f8
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ $ClassificationComplexIndicatorRegistry.forecastSum = function(){ ...@@ -55,7 +55,7 @@ $ClassificationComplexIndicatorRegistry.forecastSum = function(){
var forecastSum = 0; var forecastSum = 0;
bestForecasts.forEach(function(forecast) bestForecasts.forEach(function(forecast)
{ {
forecastSum += forecast; forecastSum = eMath.addDec(forecastSum, forecast);
}) })
return forecastSum; return forecastSum;
}, },
......
...@@ -654,6 +654,10 @@ ClassificationUpdateHelper._getEntityFields = function(pCurrentObjectType) ...@@ -654,6 +654,10 @@ ClassificationUpdateHelper._getEntityFields = function(pCurrentObjectType)
pAchievedScoresObject[pUid][pClassificationTypes[type]["classificationGroupId"]][type]["points"] = 0; pAchievedScoresObject[pUid][pClassificationTypes[type]["classificationGroupId"]][type]["points"] = 0;
pAchievedScoresObject[pUid][pClassificationTypes[type]["classificationGroupId"]][type]["fieldDisplay"] = ClassificationUtils.getFieldDisplayValue(pFieldDisplayObject, pClassificationTypes[type]["field"]); pAchievedScoresObject[pUid][pClassificationTypes[type]["classificationGroupId"]][type]["fieldDisplay"] = ClassificationUtils.getFieldDisplayValue(pFieldDisplayObject, pClassificationTypes[type]["field"]);
} }
if(!Array.isArray(achievedValueArray))
{
achievedValueArray = [achievedValueArray];
}
for (var value in achievedValueArray) for (var value in achievedValueArray)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment