From f89e2855d26dcf02790ede7a64aba670b61dd454 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 14 May 2020 01:45:52 +0200 Subject: [PATCH] Fixed that even though by SEPA standard it's allowed to leave usage empty, some banks only accept non-empty usages --- .../segmente/implementierte/sepa/SepaBankTransferBase.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fints4k/src/main/kotlin/net/dankito/fints/messages/segmente/implementierte/sepa/SepaBankTransferBase.kt b/fints4k/src/main/kotlin/net/dankito/fints/messages/segmente/implementierte/sepa/SepaBankTransferBase.kt index 8c400d5f..4b4e4acf 100644 --- a/fints4k/src/main/kotlin/net/dankito/fints/messages/segmente/implementierte/sepa/SepaBankTransferBase.kt +++ b/fints4k/src/main/kotlin/net/dankito/fints/messages/segmente/implementierte/sepa/SepaBankTransferBase.kt @@ -33,7 +33,7 @@ open class SepaBankTransferBase( "CreditorIban" to data.creditorIban.replace(" ", ""), "CreditorBic" to data.creditorBic.replace(" ", ""), "Amount" to data.amount.toString(), // TODO: check if ',' or '.' should be used as decimal separator - "Usage" to messageCreator.convertToAllowedCharacters(data.usage), + "Usage" to if (data.usage.isEmpty()) " " else messageCreator.convertToAllowedCharacters(data.usage), "RequestedExecutionDate" to RequestedExecutionDateValueForNotScheduledTransfers ), messageCreator