From 3bc18f72b301ae3b484f392baea2e814d66eebbf Mon Sep 17 00:00:00 2001
From: "j.goderbauer" <j.goderbauer@adito.de>
Date: Thu, 7 Nov 2019 16:16:48 +0100
Subject: [PATCH] Campaigncost overview: total sum was not a number sometimes
 (NaN)

---
 .../entityfields/totalcosts/valueProcess.js                    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/entity/CampaignAnalysis_entity/entityfields/totalcosts/valueProcess.js b/entity/CampaignAnalysis_entity/entityfields/totalcosts/valueProcess.js
index 26b2be044d8..147e9cfd5bc 100644
--- a/entity/CampaignAnalysis_entity/entityfields/totalcosts/valueProcess.js
+++ b/entity/CampaignAnalysis_entity/entityfields/totalcosts/valueProcess.js
@@ -1,4 +1,5 @@
 import("system.vars");
 import("system.result");
+import("system.eMath");
 
-result.string(parseFloat(vars.get("$field.VariableCosts")) + parseFloat(vars.get("$field.FixCosts")));
\ No newline at end of file
+result.string(eMath.addDec(vars.get("$field.VariableCosts"), vars.get("$field.FixCosts")));
\ No newline at end of file
-- 
GitLab