ialbert 2023-10-10 16:03:02 +03:00
parent 391384fab2
commit dc3ea5d48a
2 changed files with 3 additions and 3 deletions

View file

@ -433,13 +433,13 @@ public class ValidationConfig {
IMDGDistributedNames.Map_Company,
Company.class,
ClearingError.RequiredFieldEmpty,
ClearingError.DictionaryNotFound),
ClearingError.WrongField),
IdPresentRule.instance("addresseeId",
PIClearingOutbondActionNewRequest::getAddresseeId,
IMDGDistributedNames.Map_Company,
Company.class,
ClearingError.RequiredFieldEmpty,
ClearingError.DictionaryNotFound),
ClearingError.WrongField),
PaymentOutboundValidationRule.CreditLegAccount,
PaymentOutboundValidationRule.DebitLegAccount,
PaymentOutboundValidationRule.AddresseePresent,

View file

@ -144,7 +144,7 @@ public class PaymentInstructionOutboundService {
.build();
BankAccount bnkAcc = bnkAccImdg.getFirstObjectBySQL("accountId = %d".formatted(accDeb.getId()));
if (bnkAcc != null) {
pmt.setAddresseeBankName(bnkAcc.getBankIdentificationCode());
pmt.setAddresseeBankName(bnkAcc.getBankName());
pmt.setDebit_csAccount(bnkAcc.getCorrespondentAccount());
}
Currency currency = currImdg.getFirstObjectBySQL("currencyCode = '%s'".formatted(CurrencyCode.RUB.getKey()));