Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IncomeCalculator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
neel
IncomeCalculator
Commits
233338f4
Commit
233338f4
authored
May 22, 2020
by
neel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
by default percentage valus should be 60 for val above 1 cr
parent
65e29ee2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/main/java/com/ic/modules/auth/service/impl/LeaderCalcServiceImpl.java
+8
-4
No files found.
src/main/java/com/ic/modules/auth/service/impl/LeaderCalcServiceImpl.java
View file @
233338f4
...
...
@@ -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
)
{
for
(
int
i
=
0
;
i
<
fycarrqay
.
length
();
i
++)
{
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
)
{
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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment