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())