ialbert 2026-02-18 12:24:03 +03:00
parent a8d3822594
commit 02869b9ddd

View file

@ -216,7 +216,12 @@ public class TradingClearingRegistryValidationConfig {
if (existTCR.isEmpty()) { if (existTCR.isEmpty()) {
return empty(); return empty();
} else { } else {
return of(AccountError.AccountForTradingClearingRegistryAlreadyUsed, validatedObject.getDepoAccountId()); String depoAccountValue = Optional
.ofNullable(depoAccount.getAccountId())
.map(accountImdg::getSingleObjectByID)
.map(Account::getAccount)
.orElse("null");
return of(AccountError.AccountForTradingClearingRegistryAlreadyUsed, depoAccountValue);
} }
} }
} }