etreschenkov 2026-06-19 12:34:40 +03:00
parent c5de8c12db
commit 4e5e2a35b4
2 changed files with 3 additions and 2 deletions

View file

@ -157,6 +157,7 @@ public class ClientCodeValidationConfig {
GatewayEksClientCodeValidationRule.RubAccountPresent,
GatewayEksClientCodeValidationRule.CompanyPresent,
GatewayEksClientCodeValidationRule.DepoAccountsPresent,
GatewayEksClientCodeValidationRule.DepoAccountsNotLinkedToTkr,
GatewayEksClientCodeValidationRule.ClsAccountsPresent,
GatewayEksClientCodeValidationRule.AnltAccountPresent,
GatewayEksClientCodeValidationRule.TcrIsNotPresent

View file

@ -86,7 +86,7 @@ public enum GatewayUpdateEksClientCodeValidationRule implements IValidationRule<
);
if (accountSymbols == null) {
return of(AccountError.DepoAccountNotFound, "depo_account");
return of(AccountError.AccountNotFound, "depo_account");
}
Company company = context.getStoredObject(ClientCodeStoreObjects.COMPANY);
Imdg<DepoAccount> imdg = context.obtainMap(IMDGDistributedNames.Map_DepoAccount, DepoAccount.class);
@ -98,7 +98,7 @@ public enum GatewayUpdateEksClientCodeValidationRule implements IValidationRule<
);
if (depoAccount == null) {
context.storeObject(ClientCodeStoreObjects.DEPO_ACCOUNT, Optional.empty());
return of(AccountError.DepoAccountNotFound, "depo_account");
return of(AccountError.AccountNotFound, "depo_account");
}
if (!depoAccount.getAccountId().equals(tkr.getDepoAccountId())) {
return of(AccountError.DepoAccountChangeNotAllowed, depoAccount.getAccountId());