Skip to content
Snippets Groups Projects
Commit 378eb866 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon: Committed by Sebastian Pongratz
Browse files

[Projekt: xRM-Sales][TicketNr.: 2000608][Klassifizierung DisplayValue der...

[Projekt: xRM-Sales][TicketNr.: 2000608][Klassifizierung DisplayValue der komplexen stimmt nicht > nimmt immer den erreichten Wert]
parent 93395c5a
No related branches found
No related tags found
No related merge requests found
......@@ -677,18 +677,24 @@ ClassificationUpdateHelper._getEntityFields = function(pCurrentObjectType)
|| pClassificationTypes[type]["fieldType"] == $ClassificationFieldTypes.DATE())
{
var numberValue;
var valueForDisplayValue;
var isDate = false;
if (pClassificationTypes[type]["fieldType"] == $ClassificationFieldTypes.DATE())
{
numberValue = ClassificationUpdateHelper._getCorrectNumberValue(false, pClassificationTypes[type], false, null, parseInt(achievedValueArray), true);
valueForDisplayValue = numberValue["key"].toString();
isDate = true;
}
else
{
numberValue = ClassificationUpdateHelper._getCorrectNumberValue(false, pClassificationTypes[type], false, null, parseInt(achievedValueArray));
valueForDisplayValue = parseInt(achievedValueArray).toString();
}
numberValue = ClassificationUpdateHelper._getCorrectNumberValue(false, pClassificationTypes[type], false, null, parseInt(achievedValueArray), isDate);
pAchievedScoresObject[pUid][pClassificationTypes[type]["classificationGroupId"]][type]["value"] = $ClassificationComplexIndicatorRegistry[pClassificationTypes[type]["field"]]().getDisplayValueFn(valueForDisplayValue);
pAchievedScoresObject[pUid][pClassificationTypes[type]["classificationGroupId"]][type]["key"] = numberValue["key"];
pAchievedScoresObject[pUid][pClassificationTypes[type]["classificationGroupId"]][type]["value"] = $ClassificationComplexIndicatorRegistry[pClassificationTypes[type]["field"]]().getDisplayValueFn(numberValue["key"].toString());
pAchievedScoresObject[pUid][pClassificationTypes[type]["classificationGroupId"]][type]["maxPoints"] = numberValue["maxPoints"];
pAchievedScoresObject[pUid][pClassificationTypes[type]["classificationGroupId"]][type]["points"] = numberValue["points"];
......
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