session step 2 O/T creation capacity for accountType=info

This commit is contained in:
ialbert 2023-07-07 19:40:01 +03:00
parent 690ab4c35d
commit abdc6d69b8
2 changed files with 2 additions and 8 deletions

View file

@ -192,10 +192,7 @@ public class RegistryDepoBuilder implements IRegistryBuilder {
capacityByAccount = clearingAccount.getClearingAccountType(); capacityByAccount = clearingAccount.getClearingAccountType();
} }
} else if (AccountType.Info.equalsByKey(accountType)) { } else if (AccountType.Info.equalsByKey(accountType)) {
InformationAccount informationAccount = informationAccountImdg.getSingleObjectByID(moneyAccountId); capacityByAccount = RegistryCapacity.A.getKey();
if (informationAccount != null) {
capacityByAccount = "A"; //todo сделать enum
}
} }
return capacityByAccount; return capacityByAccount;
} }

View file

@ -190,10 +190,7 @@ public class RegistryFondBuilder implements IRegistryBuilder {
capacityByAccount = clearingAccount.getClearingAccountType(); capacityByAccount = clearingAccount.getClearingAccountType();
} }
} else if (AccountType.Info.equalsByKey(accountType)) { } else if (AccountType.Info.equalsByKey(accountType)) {
InformationAccount informationAccount = informationAccountImdg.getSingleObjectByID(moneyAccountId); capacityByAccount = RegistryCapacity.A.getKey();
if (informationAccount != null) {
capacityByAccount = "A"; //todo сделать enum
}
} }
return capacityByAccount; return capacityByAccount;
} }