Commit b2de58ea by neel

Divide by 0 value handling

parent 7d75bcab
...@@ -156,9 +156,13 @@ public class LeaderCalcServiceImpl implements LeaderCalcService { ...@@ -156,9 +156,13 @@ public class LeaderCalcServiceImpl implements LeaderCalcService {
double TOTAL_BAU_WNBP_TOATL = BAU_Inputs_TOTAL.getDouble("TOTAL_BAU_WNBP_TOATL"); double TOTAL_BAU_WNBP_TOATL = BAU_Inputs_TOTAL.getDouble("TOTAL_BAU_WNBP_TOATL");
double TOTAL_CASE_SIZE_PER_NOP_BAU = BAU_Inputs_TOTAL.getDouble("TOTAL_CASE_SIZE_PER_NOP_BAU"); double TOTAL_CASE_SIZE_PER_NOP_BAU = BAU_Inputs_TOTAL.getDouble("TOTAL_CASE_SIZE_PER_NOP_BAU");
if (Double.valueOf(TOTAL_CASE_SIZE_PER_NOP_BAU).equals(0.0)) {
BAU_Inputs_TOTAL.put("TOTAL_NOP_AGENT_BAU", 0);
} else {
BAU_Inputs_TOTAL.put("TOTAL_NOP_AGENT_BAU", BAU_Inputs_TOTAL.put("TOTAL_NOP_AGENT_BAU",
Double.valueOf(TOTAL_BAU_WNBP_TOATL) / Double.valueOf(TOTAL_CASE_SIZE_PER_NOP_BAU)); Double.valueOf(TOTAL_BAU_WNBP_TOATL) / Double.valueOf(TOTAL_CASE_SIZE_PER_NOP_BAU));
}
// Neel – 20-Apr-2020 – Tata - Leader calculation – BAU inputs table end // Neel – 20-Apr-2020 – Tata - Leader calculation – BAU inputs table end
// Neel – 20-Apr-2020 – Tata - Leader calculation – BAU2 inputs table start // Neel – 20-Apr-2020 – Tata - Leader calculation – BAU2 inputs table start
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment