sdf03 anlt account search bugfix

This commit is contained in:
ialbert 2023-07-09 14:19:03 +03:00
parent 667ca04eeb
commit cdd4c4069c

View file

@ -43,7 +43,7 @@ public class Sdf03Creator {
String c_acc_deb;
if (AccountType.Info.equals(accType)) {
Account anltAcc = accountImdg.getSingleObjectBySQL("accountType = '%s' and status = '%s'"
.formatted(AccountType.Anlt, Status.Active.getKey()));
.formatted(AccountType.Anlt.getKey(), Status.Active.getKey()));
if (anltAcc == null) {
throw new IllegalStateException("SDF03 creation error: paymentInstruction.creditLeg_accountId="
+ paymentInstruction.getCreditLeg_accountId() + " accountType 'Info' but no 'ANLT' account found");