From 03b85181e49e5e6196ea4c6c408ce15f49b68d94 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 5 Jul 2020 11:28:46 +0200 Subject: [PATCH] Fixed that amounts in German format with comma couldn't be parsed --- .../kotlin/net/dankito/banking/extensions/AmountExtensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/fints4kBankingClient/src/main/kotlin/net/dankito/banking/extensions/AmountExtensions.kt b/ui/fints4kBankingClient/src/main/kotlin/net/dankito/banking/extensions/AmountExtensions.kt index 9e7d2f35..61c2a180 100644 --- a/ui/fints4kBankingClient/src/main/kotlin/net/dankito/banking/extensions/AmountExtensions.kt +++ b/ui/fints4kBankingClient/src/main/kotlin/net/dankito/banking/extensions/AmountExtensions.kt @@ -14,7 +14,7 @@ fun BigDecimal.toMoney(): Money { } fun Amount.toJavaBigDecimal(): BigDecimal { - return BigDecimal(this.string) + return BigDecimal(this.string.replace(',', '.')) } fun Money.toJavaBigDecimal(): BigDecimal {