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); eFond.setQuantity(qty);
BigDecimal settlementAmount = BigDecimal.ZERO; BigDecimal settlementAmount = BigDecimal.ZERO;
if (InstrumentType.DGCT.equalsByKey(security.getInstrumentType())) { 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())) { } else if (InstrumentType.BOND.equalsByKey(security.getInstrumentType())) {
FixedIncomeSecurity fixedIncome = (FixedIncomeSecurity) security; FixedIncomeSecurity fixedIncome = (FixedIncomeSecurity) security;
BigDecimal nominalValue; BigDecimal nominalValue;
@ -394,7 +394,7 @@ public class ExecutionFondComponent implements IExecutionUploadComponent {
settlementAmount); settlementAmount);
notifications.sendNotification( notifications.sendNotification(
ObjectType.vfrs, ObjectType.vfrs,
"Для сделки %s объем сделки в ТС %s не совпадает с расчитанным в КС %s" "Для сделки %s объем сделки в ТС %s не совпадает с рассчитанным в КС %s"
.formatted(sTrades.getTradeNum(), .formatted(sTrades.getTradeNum(),
safeBD(sTrades.getValue()).toString(), safeBD(sTrades.getValue()).toString(),
settlementAmount.toString()), settlementAmount.toString()),