This commit is contained in:
parent
2a8fbad2dc
commit
33298fb391
1 changed files with 5 additions and 3 deletions
|
|
@ -124,9 +124,11 @@ public class Sdf54Creator {
|
||||||
sDf54.setKpp_deb(kppDeb);
|
sDf54.setKpp_deb(kppDeb);
|
||||||
}
|
}
|
||||||
|
|
||||||
Account accDebAcc = accountImdg.getSingleObjectByID(pmt.getDebitLeg_accountId());
|
if (pmt.getDebitLeg_accountId() != null) {
|
||||||
if (accDebAcc == null || !AccountStatus.ACTIVE.equalsByKey(accDebAcc.getStatus())) {
|
Account accDebAcc = accountImdg.getSingleObjectByID(pmt.getDebitLeg_accountId());
|
||||||
log.warn("paymentInstruction[{}].DebitLeg_accountId={} account not exist or not active.", pmt.getId(), pmt.getDebitLeg_accountId());
|
if (accDebAcc == null || !AccountStatus.ACTIVE.equalsByKey(accDebAcc.getStatus())) {
|
||||||
|
log.warn("paymentInstruction[{}].DebitLeg_accountId={} account not exist or not active.", pmt.getId(), pmt.getDebitLeg_accountId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
BankAccount bnkAcc = bankAccountImdg.getFirstObjectBySQL("accountId = %d".formatted(pmt.getDebitLeg_accountId()));
|
BankAccount bnkAcc = bankAccountImdg.getFirstObjectBySQL("accountId = %d".formatted(pmt.getDebitLeg_accountId()));
|
||||||
if (bnkAcc != null) {
|
if (bnkAcc != null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue