PaymentInstruction#paymentPurpose расмещение "Размещение депозита ... по ТКР ..."
This commit is contained in:
parent
ab46e96c28
commit
690ab4c35d
1 changed files with 6 additions and 2 deletions
|
|
@ -121,7 +121,7 @@ public class PaymentInstructionBuilderFinalMkrDeals {
|
|||
|
||||
payment1.setPaymentDate(TimeUtil.localDateToInstant(lm_t.getSettlementDate()));
|
||||
|
||||
payment1.setPaymentPurpose("Размещение депозита " + lm_t.getContract());
|
||||
payment1.setPaymentPurpose(paymentPurpose(lm_t));
|
||||
|
||||
payment1.setSettlementDate(lm_t.getSettlementDate());
|
||||
|
||||
|
|
@ -181,7 +181,7 @@ public class PaymentInstructionBuilderFinalMkrDeals {
|
|||
}
|
||||
payment2.setAdresseeBic(tranBic);
|
||||
payment2.setPaymentDate(TimeUtil.localDateToInstant(lm_t.getSettlementDate()));
|
||||
payment2.setPaymentPurpose("Размещение депозита " + lm_t.getContract());
|
||||
payment2.setPaymentPurpose(paymentPurpose(lm_t));
|
||||
payment2.setSettlementDate(lm_t.getSettlementDate());
|
||||
BigDecimal amount = lm_t.getBalance() == null ? null : lm_t.getBalance().abs();
|
||||
payment2.setCreditLeg_amount(amount);
|
||||
|
|
@ -213,6 +213,10 @@ public class PaymentInstructionBuilderFinalMkrDeals {
|
|||
return new Pair<>(payment1, payment2);
|
||||
}
|
||||
|
||||
private static String paymentPurpose(Registry rgs) {
|
||||
return "Размещение депозита " + rgs.getContract() + " по ТКР " + rgs.getTradingClearingRegistry();
|
||||
}
|
||||
|
||||
protected String nextDocumentNumber(Registry rgs, PaymentInstruction paymentInstruction) {
|
||||
LocalDate nowD = LocalDate.now();
|
||||
if (documentNumberResetAt == null || documentNumberResetAt.isBefore(nowD)) synchronized (this) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue