diff --git a/clearing-parent/account-service/src/main/java/ru/spcex/clearing/account/validation/GatewayUpdateEksClientCodeValidationRule.java b/clearing-parent/account-service/src/main/java/ru/spcex/clearing/account/validation/GatewayUpdateEksClientCodeValidationRule.java index 71cf5bafe..86b48bcbf 100644 --- a/clearing-parent/account-service/src/main/java/ru/spcex/clearing/account/validation/GatewayUpdateEksClientCodeValidationRule.java +++ b/clearing-parent/account-service/src/main/java/ru/spcex/clearing/account/validation/GatewayUpdateEksClientCodeValidationRule.java @@ -86,7 +86,7 @@ public enum GatewayUpdateEksClientCodeValidationRule implements IValidationRule< ); if (accountSymbols == null) { - return of(AccountError.AccountNotFound, "depo_account"); + return of(AccountError.AccountNotFound, depoAccountVal); } Company company = context.getStoredObject(ClientCodeStoreObjects.COMPANY); Imdg imdg = context.obtainMap(IMDGDistributedNames.Map_DepoAccount, DepoAccount.class); @@ -98,10 +98,10 @@ public enum GatewayUpdateEksClientCodeValidationRule implements IValidationRule< ); if (depoAccount == null) { context.storeObject(ClientCodeStoreObjects.DEPO_ACCOUNT, Optional.empty()); - return of(AccountError.AccountNotFound, "depo_account"); + return of(AccountError.AccountNotFound, depoAccountVal); } if (!depoAccount.getAccountId().equals(tkr.getDepoAccountId())) { - return of(AccountError.DepoAccountChangeNotAllowed, depoAccount.getAccountId()); + return of(AccountError.DepoAccountChangeNotAllowed, tkr.getCode()); } } return empty(); @@ -248,7 +248,7 @@ public enum GatewayUpdateEksClientCodeValidationRule implements IValidationRule< ) ); if (account == null) { - return of(AccountError.AccountNotFound, request.getAccount()); + return of(AccountError.AccountNotFound, request.getEks_account()); } Collection tkrListByAccount = tkrList.getCollectionIdsByPredicate( predicateBuilder.and(