This commit is contained in:
parent
2a8fbad2dc
commit
33298fb391
1 changed files with 5 additions and 3 deletions
|
|
@ -124,10 +124,12 @@ public class Sdf54Creator {
|
|||
sDf54.setKpp_deb(kppDeb);
|
||||
}
|
||||
|
||||
if (pmt.getDebitLeg_accountId() != null) {
|
||||
Account accDebAcc = accountImdg.getSingleObjectByID(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()));
|
||||
if (bnkAcc != null) {
|
||||
sDf54.setInn_cred(bnkAcc.getTaxpayerIdentificationNumber());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue