Hi,
Just saw that the deposit transaction only accepts rounded numbers without decimal (Integer type?).
I just tried to enter 20.50$ and I have a message telling me that the closest possible values are 20$ or 21$.
I think in most scenarios, the user who makes a deposit should be allowed to deposit the exact amount he needs to pay for something on the site, and there is only low probability that this amount would be rounded to an enire value/integer. Also, I'm not sure about the value that this constraint brings to the user or the site, knowing that all other transactions accept amounts with decimals.
Is there any good reasons for accepting only integers for deposits?
If not, is it possible to change the code to accept decimal numbers for deposit amounts?
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3076069_deposit_amount_decimal.patch | 555 bytes | aporie |
Comments
Comment #2
aporieYeah I did it on purpose. Thinking that it was better to deposit integer amounts. But you're right it's actually more restrictive than allowing decimals. If somebody wants to implement integer amount only he will just need to alter the field.
I've set it as decimal allowed.
Patch attached.
Comment #4
aporieComment #5
arno2mars commentedThanks a lot Aporie!
As always, it works perfectly :-)
Cheers,