Skip to content
Snippets Groups Projects
Commit a73494b9 authored by Christian Dresen's avatar Christian Dresen
Browse files

Fixed Custom Charge Dialog

parent aa9980b0
Branches master
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment