Fixed removing white spaces from entered IBANs and BICs

This commit is contained in:
dankito 2020-05-12 19:59:29 +02:00
parent 3b41f41cf3
commit b556205134
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

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

View File

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