Fixed that even though by SEPA standard it's allowed to leave usage empty, some banks only accept non-empty usages

This commit is contained in:
dankito 2020-05-14 01:45:52 +02:00
parent 8bc3f0fe8e
commit f89e2855d2
1 changed files with 1 additions and 1 deletions

View File

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