Fixed that amounts in German format with comma couldn't be parsed
This commit is contained in:
parent
46783b6118
commit
03b85181e4
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue