Fixed that amounts with ',' as decimal separator didn't get converted correctly to BigDecimal
This commit is contained in:
parent
a5e52c21b2
commit
643ae4ecd8
|
@ -334,7 +334,7 @@ open class TransferMoneyDialog : DialogFragment() {
|
|||
|
||||
protected open fun getEnteredAmount(): BigDecimal? {
|
||||
try {
|
||||
val amountString = edtxtAmount.text.toString()
|
||||
val amountString = edtxtAmount.text.toString().replace(',', '.')
|
||||
|
||||
return amountString.toBigDecimal()
|
||||
} catch (ignored: Exception) { }
|
||||
|
|
Loading…
Reference in New Issue