From 517dc8669a912741022f83c3b3e61f48a10d64ce Mon Sep 17 00:00:00 2001 From: ialbert Date: Thu, 11 Jan 2024 14:29:59 +0300 Subject: [PATCH] http://jira.mfd.msk:8088/browse/CLS-311 --- .../payment/PaymentInstructionOutboundService.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/clearing-parent/clearing-service/src/main/java/ru/spcex/clearing/service/payment/PaymentInstructionOutboundService.java b/clearing-parent/clearing-service/src/main/java/ru/spcex/clearing/service/payment/PaymentInstructionOutboundService.java index 8a7c120e5..2c6d9ddcd 100644 --- a/clearing-parent/clearing-service/src/main/java/ru/spcex/clearing/service/payment/PaymentInstructionOutboundService.java +++ b/clearing-parent/clearing-service/src/main/java/ru/spcex/clearing/service/payment/PaymentInstructionOutboundService.java @@ -125,12 +125,13 @@ public class PaymentInstructionOutboundService { log.debug("all checks passed, accCred.id={}, accDeb.id={}, addressee.id={}, sender.id={}, amount: {}", accCred.getId(), accDeb.getId(), addressee.getId(), sender.getId(), amount); - String purpose = tcr != null ? "Вывод средств по ТКР " + tcr.getCode() + " ." : "Вывод средств."; + String purpose = tcr != null ? "Возврат средств, свободных от обязательств с ТКР " + tcr.getCode() + " ." : "Вывод средств."; if (payload.getPaymentPurpose() != null) { - purpose += " " + payload.getPaymentPurpose(); - if (!(purpose.endsWith(".") || purpose.endsWith("!") || purpose.endsWith("?") || purpose.endsWith(";"))) { - purpose += "."; + String reqPmtPrpse = payload.getPaymentPurpose(); + if (!(reqPmtPrpse.endsWith(".") || reqPmtPrpse.endsWith("!") || reqPmtPrpse.endsWith("?") || reqPmtPrpse.endsWith(";"))) { + reqPmtPrpse += "."; } + purpose = reqPmtPrpse + " " + purpose; } PaymentInstruction pmt = PaymentInstructionBuilderV2.builder(imdgProvider) .registry(new Registry())