создание PaymentInstruction при обработке сделок для итоговой сессии МКР fix payeeBic
This commit is contained in:
parent
2319f1a345
commit
9d2be448ee
1 changed files with 5 additions and 4 deletions
|
|
@ -86,6 +86,7 @@ public class PaymentInstructionBuilderFinalMkrDeals {
|
|||
|
||||
Instant now = Instant.now();
|
||||
String symbolPRC = selectSymbolValue(Sender.Prc.getId(), CompanySymbol.BIC); // 2 "НКО АО ПРЦ"
|
||||
String tranBic;
|
||||
{ // record 1
|
||||
payment1 = new PaymentInstruction();
|
||||
payment1.setCreated(now);
|
||||
|
|
@ -93,11 +94,11 @@ public class PaymentInstructionBuilderFinalMkrDeals {
|
|||
payment1.setSenderId(lm_t.getCompanyId());
|
||||
payment1.setAddresseeId(Sender.One.getId());
|
||||
{
|
||||
String addresseeBic = selectSymbolValue(payment1.getAddresseeId(), CompanySymbol.BIC);
|
||||
if (addresseeBic == null) {
|
||||
tranBic = selectSymbolValue(payment1.getAddresseeId(), CompanySymbol.BIC);
|
||||
if (tranBic == null) {
|
||||
log.warn("CompanySymbols BIC not found for companyId={}", payment1.getAddresseeId());
|
||||
} else {
|
||||
payment1.setAdresseeBic(addresseeBic);
|
||||
payment1.setAdresseeBic(tranBic);
|
||||
}
|
||||
}
|
||||
{
|
||||
|
|
@ -178,7 +179,7 @@ public class PaymentInstructionBuilderFinalMkrDeals {
|
|||
payment2.setPayeeBankName(companyPRC.getShortName());
|
||||
payment2.setAddresseeBankName(companyPRC.getShortName());
|
||||
}
|
||||
payment2.setPayeeBic(symbolPRC);
|
||||
payment1.setAdresseeBic(tranBic);
|
||||
payment2.setPaymentDate(TimeUtil.localDateToInstant(lm_t.getSettlementDate()));
|
||||
payment2.setPaymentPurpose("Размещение депозита " + lm_t.getContract());
|
||||
payment2.setSettlementDate(lm_t.getSettlementDate());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue