From b55620513492391cc0f1696e617df7ae96e66427 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 12 May 2020 19:59:29 +0200 Subject: [PATCH] Fixed removing white spaces from entered IBANs and BICs --- .../segmente/implementierte/sepa/SepaEinzelueberweisung.kt | 4 ++-- .../fints4java/android/ui/dialogs/TransferMoneyDialog.kt | 4 ++-- .../ui/javafx/dialogs/cashtransfer/TransferMoneyDialog.kt | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fints4k/src/main/kotlin/net/dankito/fints/messages/segmente/implementierte/sepa/SepaEinzelueberweisung.kt b/fints4k/src/main/kotlin/net/dankito/fints/messages/segmente/implementierte/sepa/SepaEinzelueberweisung.kt index ac8852fe..7c0e16c3 100644 --- a/fints4k/src/main/kotlin/net/dankito/fints/messages/segmente/implementierte/sepa/SepaEinzelueberweisung.kt +++ b/fints4k/src/main/kotlin/net/dankito/fints/messages/segmente/implementierte/sepa/SepaEinzelueberweisung.kt @@ -29,8 +29,8 @@ open class SepaEinzelueberweisung( "DebitorIban" to account.iban!!, "DebitorBic" to debitorBic, "CreditorName" to messageCreator.convertToAllowedCharacters(data.creditorName), - "CreditorIban" to data.creditorIban, - "CreditorBic" to data.creditorBic, + "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), "RequestedExecutionDate" to RequestedExecutionDateValueForNotScheduledTransfers diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/TransferMoneyDialog.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/TransferMoneyDialog.kt index eba765c1..6aecc4aa 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/TransferMoneyDialog.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/dialogs/TransferMoneyDialog.kt @@ -218,8 +218,8 @@ open class TransferMoneyDialog : DialogFragment() { getEnteredAmount()?.let { amount -> // should only come at this stage when a valid amount has been entered val data = TransferMoneyData( edtxtRemitteeName.text.toString(), - edtxtRemitteeIban.text.toString(), - edtxtRemitteeBic.text.toString(), + edtxtRemitteeIban.text.toString().replace(" ", ""), + edtxtRemitteeBic.text.toString().replace(" ", ""), amount, edtxtUsage.text.toString() ) diff --git a/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/cashtransfer/TransferMoneyDialog.kt b/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/cashtransfer/TransferMoneyDialog.kt index 781fa51e..502a435a 100644 --- a/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/cashtransfer/TransferMoneyDialog.kt +++ b/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/dialogs/cashtransfer/TransferMoneyDialog.kt @@ -246,8 +246,8 @@ open class TransferMoneyDialog @JvmOverloads constructor( val data = TransferMoneyData( remitteeName.value, - remitteeIban.value, - remitteeBic.value, + remitteeIban.value.replace(" ", ""), + remitteeBic.value.replace(" ", ""), amount.value.toBigDecimal(), usage.value )