Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
rbl-cms
cms-backend
Commits
18fadc8b
Commit
18fadc8b
authored
11 months ago
by
thanawat
Browse files
Options
Download
Email Patches
Plain Diff
Monthly-Bonus-RoundDown
parent
2e0c7b6f
main
CareerAgentBenefit
Monthly-Bonus
Quarterly-Bonus
Yearly-Bonus
dev
feature/active-agent
feature/convert-object
feature/director-recuiting
feature/download-50tawi
feature/merge-service
feature/reload-jbpm
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/b3/rbl/compensation/service/MonthlyBonusService.java
+14
-19
.../com/b3/rbl/compensation/service/MonthlyBonusService.java
with
14 additions
and
19 deletions
+14
-19
src/main/java/com/b3/rbl/compensation/service/MonthlyBonusService.java
View file @
18fadc8b
...
...
@@ -311,12 +311,12 @@ public class MonthlyBonusService {
+
concatSingleQuote
(
agent
.
getBenefitCode
().
toString
())
+
","
+
agent
.
getPersistencyRate
()
+
","
+
agent
.
getPercistencyController
()
+
","
+
roundingD
own
Scale
(
agent
.
getFycAmount
())
+
","
+
roundingD
own
Scale
(
agent
.
getFycProduction
())
+
","
+
jbpmService
.
roundingD
ecimal
Scale
(
agent
.
getFycAmount
())
+
","
+
jbpmService
.
roundingD
ecimal
Scale
(
agent
.
getFycProduction
())
+
","
+
agent
.
getBonusRate
()
+
","
+
roundingD
own
Scale
(
agent
.
getBonus
())
+
","
+
roundingD
own
Scale
(
agent
.
getIncomeTax
())
+
","
+
roundingD
own
Scale
(
agent
.
getDeductTax
())
+
","
+
jbpmService
.
roundingD
ecimal
Scale
(
agent
.
getBonus
())
+
","
+
jbpmService
.
roundingD
ecimal
Scale
(
agent
.
getIncomeTax
())
+
","
+
jbpmService
.
roundingD
ecimal
Scale
(
agent
.
getDeductTax
())
+
","
+
concatSingleQuote
(
agent
.
getCalculationDate
())
+
","
+
concatSingleQuote
(
agent
.
getDescription
())
...
...
@@ -333,12 +333,12 @@ public class MonthlyBonusService {
+
agent
.
getBenefitCode
()
+
","
+
agent
.
getPersistencyRate
()
+
","
+
agent
.
getPercistencyController
()
+
","
+
roundingD
own
Scale
(
agent
.
getFycAmount
())
+
","
+
roundingD
own
Scale
(
agent
.
getFycProduction
())
+
","
+
jbpmService
.
roundingD
ecimal
Scale
(
agent
.
getFycAmount
())
+
","
+
jbpmService
.
roundingD
ecimal
Scale
(
agent
.
getFycProduction
())
+
","
+
agent
.
getBonusRate
()
+
","
+
roundingD
own
Scale
(
agent
.
getBonus
())
+
","
+
roundingD
own
Scale
(
agent
.
getIncomeTax
())
+
","
+
roundingD
own
Scale
(
agent
.
getDeductTax
())
+
","
+
jbpmService
.
roundingD
ecimal
Scale
(
agent
.
getBonus
())
+
","
+
jbpmService
.
roundingD
ecimal
Scale
(
agent
.
getIncomeTax
())
+
","
+
jbpmService
.
roundingD
ecimal
Scale
(
agent
.
getDeductTax
())
+
","
+
agent
.
getCalculationDate
()
+
","
+
concatSingleQuote
(
agent
.
getDescription
())
+
"),"
;
...
...
@@ -409,8 +409,8 @@ public class MonthlyBonusService {
+
concatSingleQuote
(
detail
.
getTransactionType
())
+
","
+
concatSingleQuote
(
detail
.
getAgentCode
().
toString
())
+
","
+
concatSingleQuote
(
detail
.
getDetailPolicyNo
())
+
","
+
roundingD
own
Scale
(
detail
.
getDetailFycAmount
())
+
","
+
roundingD
own
Scale
(
detail
.
getDetailFycProduction
())
+
","
+
jbpmService
.
roundingD
ecimal
Scale
(
detail
.
getDetailFycAmount
())
+
","
+
jbpmService
.
roundingD
ecimal
Scale
(
detail
.
getDetailFycProduction
())
+
","
+
concatSingleQuote
(
benefitId
)
+
"),"
;
...
...
@@ -427,8 +427,8 @@ public class MonthlyBonusService {
+
concatSingleQuote
(
detail
.
getTransactionType
())
+
","
+
concatSingleQuote
(
detail
.
getAgentCode
().
toString
())
+
","
+
concatSingleQuote
(
detail
.
getDetailPolicyNo
())
+
","
+
roundingD
own
Scale
(
detail
.
getDetailFycAmount
())
+
","
+
roundingD
own
Scale
(
detail
.
getDetailFycProduction
())
+
","
+
jbpmService
.
roundingD
ecimal
Scale
(
detail
.
getDetailFycAmount
())
+
","
+
jbpmService
.
roundingD
ecimal
Scale
(
detail
.
getDetailFycProduction
())
+
","
+
concatSingleQuote
(
benefitId
)
+
"),"
;
}
...
...
@@ -482,11 +482,6 @@ public class MonthlyBonusService {
}
public
Double
roundingDownScale
(
Double
number
)
{
BigDecimal
bigDecimal
=
number
!=
null
?
new
BigDecimal
(
Double
.
toString
(
number
))
:
new
BigDecimal
(
Double
.
toString
(
0
));
BigDecimal
roundedBigDecimal
=
bigDecimal
.
setScale
(
2
,
RoundingMode
.
DOWN
);
return
roundedBigDecimal
.
doubleValue
();
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help