This commit is contained in:
parent
96d7241e6b
commit
91aca3865e
1 changed files with 2 additions and 2 deletions
|
|
@ -342,7 +342,7 @@ public class ExecutionFondComponent implements IExecutionUploadComponent {
|
|||
eFond.setQuantity(qty);
|
||||
BigDecimal settlementAmount = BigDecimal.ZERO;
|
||||
if (InstrumentType.DGCT.equalsByKey(security.getInstrumentType())) {
|
||||
settlementAmount = qty.multiply(eFond.getPrice());
|
||||
settlementAmount = qty.multiply(eFond.getPrice()).setScale(2, RoundingMode.HALF_UP);
|
||||
} else if (InstrumentType.BOND.equalsByKey(security.getInstrumentType())) {
|
||||
FixedIncomeSecurity fixedIncome = (FixedIncomeSecurity) security;
|
||||
BigDecimal nominalValue;
|
||||
|
|
@ -394,7 +394,7 @@ public class ExecutionFondComponent implements IExecutionUploadComponent {
|
|||
settlementAmount);
|
||||
notifications.sendNotification(
|
||||
ObjectType.vfrs,
|
||||
"Для сделки %s объем сделки в ТС %s не совпадает с расчитанным в КС %s"
|
||||
"Для сделки %s объем сделки в ТС %s не совпадает с рассчитанным в КС %s"
|
||||
.formatted(sTrades.getTradeNum(),
|
||||
safeBD(sTrades.getValue()).toString(),
|
||||
settlementAmount.toString()),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue