Skip to content

Commit

Permalink
In den Einstellungen sind IBAN und BIC jetzt optional. (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSchmalzl committed Dec 29, 2023
1 parent 0d12fe2 commit 406ad0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
3 changes: 0 additions & 3 deletions src/de/jost_net/JVerein/gui/control/EinstellungControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ public TextInput getBic() throws RemoteException
return bic;
}
bic = new BICInput(Einstellungen.getEinstellung().getBic());
bic.setMandatory(true);
return bic;
}

Expand All @@ -467,7 +466,6 @@ public IBANInput getIban() throws RemoteException
return iban;
}
iban = new IBANInput(Einstellungen.getEinstellung().getIban(), bic);
iban.setMandatory(true);
return iban;
}

Expand All @@ -479,7 +477,6 @@ public TextInput getGlaeubigerID() throws RemoteException
}
glaeubigerid = new TextInput(Einstellungen.getEinstellung()
.getGlaeubigerID(), 35);
glaeubigerid.setMandatory(true);
return glaeubigerid;
}

Expand Down
26 changes: 1 addition & 25 deletions src/de/jost_net/JVerein/server/EinstellungImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,31 +114,7 @@ protected void insertCheck() throws ApplicationException
{
throw new ApplicationException("Bitte Namen eingeben");
}
if (getIban() == null || getIban().length() == 0)
{
throw new ApplicationException("Bitte IBAN eingeben");
}
if (getBic() == null || getBic().length() == 0)
{
throw new ApplicationException("Bitte BIC eingeben");
}

try
{
new IBAN(getIban());
}
catch (SEPAException e1)
{
throw new ApplicationException(e1.getMessage());
}
try
{
new BIC(getBic());
}
catch (SEPAException e1)
{
throw new ApplicationException(e1.getMessage());
}

try
{
new AltersgruppenParser(getAltersgruppen());
Expand Down

0 comments on commit 406ad0a

Please sign in to comment.