Fixed that amounts in German format with comma couldn't be parsed

This commit is contained in:
dankito 2020-07-05 11:28:46 +02:00
parent 46783b6118
commit 03b85181e4
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ fun BigDecimal.toMoney(): Money {
} }
fun Amount.toJavaBigDecimal(): BigDecimal { fun Amount.toJavaBigDecimal(): BigDecimal {
return BigDecimal(this.string) return BigDecimal(this.string.replace(',', '.'))
} }
fun Money.toJavaBigDecimal(): BigDecimal { fun Money.toJavaBigDecimal(): BigDecimal {