etreschenkov 2025-09-18 17:32:24 +03:00
parent 96d7241e6b
commit 91aca3865e

View file

@ -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()),