Commit 233338f4 by neel

by default percentage valus should be 60 for val above 1 cr

parent 65e29ee2
......@@ -296,21 +296,25 @@ public class LeaderCalcServiceImpl implements LeaderCalcService {
double val = TOTAL_WFYC;
double percentage = 0;
//neel gosrani 22-05-2020 by default percentage valus should be 60 for val above 1 cr
if(val>10000000) {
percentage=60;
}
else {
for (int i = 0; i < fycarrqay.length(); i++) {
double minval = fycarrqay.getJSONObject(i).getDouble("minval");
double maxval = fycarrqay.getJSONObject(i).getDouble("maxval");
double per = fycarrqay.getJSONObject(i).getDouble("per");
if (val >= minval && val <= maxval) {
for (int i = 0; i < fycarrqay.length(); i++) {
double minval = fycarrqay.getJSONObject(i).getDouble("minval");
double maxval = fycarrqay.getJSONObject(i).getDouble("maxval");
double per = fycarrqay.getJSONObject(i).getDouble("per");
percentage = per;
break;
if (val >= minval && val <= maxval) {
percentage = per;
break;
}
}
}
EARNING_TOTAL.put("TOTAL_MONTHLY_PERFORMANCE_BONUS",(val * percentage) / 100);
double TOTAL_MONTHLY_PERFORMANCE_BONUS = EARNING_TOTAL.getDouble("TOTAL_MONTHLY_PERFORMANCE_BONUS");
......
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