Commit a73494b9 authored by Christian Dresen's avatar Christian Dresen
Browse files

Fixed Custom Charge Dialog

parent aa9980b0
......@@ -143,8 +143,7 @@ public class MainManager {
public void chargeAmount(BigDecimal amount) {
User currentUser = this.dataManager.getCurrentUser();
if(amount.compareTo(new BigDecimal(0)) < 0 || amount.precision() > 2) {
if(amount.compareTo(new BigDecimal(0)) < 0 || amount.scale() > 2) {
UiManager.getInstance().showWarning("Fehlerhafter Betrag angegeben.",4000);
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment