This commit is contained in:
parent
25090d5499
commit
be9521af85
1 changed files with 2 additions and 1 deletions
|
|
@ -280,7 +280,8 @@ public class KSRepLccValueReportBuilder extends CSVReportBuilder<EmptyParams, KS
|
|||
}
|
||||
log.info("tkr = {}: Risk[{}] = {}", tkr, rate.getCurrency(), risk.get(currencyId).getValue());
|
||||
|
||||
m0Value = m0Value.add(posMoney.multiply(rate.getValue()).multiply(riskValue));
|
||||
BigDecimal posMoneyForM0 = posMoney.compareTo(BigDecimal.ZERO) < 0 ? posMoney.negate() : posMoney;
|
||||
m0Value = m0Value.add(posMoneyForM0.multiply(rate.getValue()).multiply(riskValue));
|
||||
sValue = sValue.add(posMoney.multiply(rate.getValue()));
|
||||
|
||||
log.debug("tkr = {}: Risk[{}] = {}", tkr, rate.getCurrency(), risk.get(currencyId));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue