This commit is contained in:
parent
ee781393fb
commit
89c11c4305
1 changed files with 1 additions and 0 deletions
|
|
@ -329,6 +329,7 @@ public class KSRepLccValueReportBuilder extends CSVReportBuilder<EmptyParams, KS
|
|||
constValue = sValueExt.subtract(m0ValueExt);
|
||||
BigDecimal posMoney = posMoneys.get(rate.getCurrencyId());
|
||||
BigDecimal riskValue = risk.get(rate.getCurrencyId()).getValue();
|
||||
riskValue = posMoney.compareTo(BigDecimal.ZERO) < 0 ? riskValue.negate() : riskValue;
|
||||
BigDecimal minPos = BigDecimal.ZERO;
|
||||
if (riskValue.compareTo(BigDecimal.ONE) != 0) {
|
||||
minPos = constValue.negate().divide(BigDecimal.ONE.subtract(riskValue).multiply(rate.getValue()), RoundingMode.HALF_UP);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue