Skip to content

Commit

Permalink
Update BuchungsControl.java
Browse files Browse the repository at this point in the history
Hier nun die im Forum angemerkte, notwendige Korrektur (https://jverein-forum.de/viewtopic.php?p=19526#p19526) in Zeile 238.
  • Loading branch information
FullHD23 committed Oct 25, 2023
1 parent f221a44 commit bcba0ab
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/de/jost_net/JVerein/gui/control/BuchungsControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public class BuchungsControl extends AbstractControl {

private TextAreaInput kommentar;

// Definition für beide Auswahlvarianten (SelectInput und
// Definition für beide Auswahlvarianten (SelectInput und
// BuchungsartSearchInput)
private AbstractInput buchungsart;

Expand Down Expand Up @@ -213,7 +213,7 @@ public static Integer getLastBelegnummer(Date NewDate_, String NewKontoId)
getNewLastBelegnummer = true;
}

// Falls neues Datum nicht innerhalb des aktuellen Geschäftsjahres liegt, Belegnummer neu
// Falls neues Datum nicht innerhalb des aktuellen Geschäftsjahres liegt, Belegnummer neu
// auslesen
if (!(NewDate.compareTo(LastBeginnGeschaeftsjahr) >= 0
&& NewDate.compareTo(LastEndeGeschaeftsjahr) <= 0)
Expand All @@ -235,7 +235,7 @@ public static Integer getLastBelegnummer(Date NewDate_, String NewKontoId)
List<Object> arg_list = new ArrayList<Object>();
String sql = "SELECT max(belegnummer) FROM buchung";
if (Einstellungen.getEinstellung().getBelegnummerProJahr()
&& Einstellungen.getEinstellung().getBelegnummerProKonto()) {
|| Einstellungen.getEinstellung().getBelegnummerProKonto()) {
sql += " WHERE ";
}
if (Einstellungen.getEinstellung().getBelegnummerProJahr()) {
Expand Down Expand Up @@ -400,7 +400,7 @@ public DateInput getDatum() throws RemoteException {
Date d = getBuchung().getDatum();
this.datum = new DateInput(d, new JVDateFormatTTMMJJJJ());
this.datum.setTitle("Datum");
this.datum.setText("Bitte Datum wählen");
this.datum.setText("Bitte Datum wählen");
return datum;
}

Expand Down Expand Up @@ -511,7 +511,7 @@ public Input getProjekt() throws RemoteException {
projekt = new SelectInput(list, getBuchung().getProjekt());
projekt.setValue(getBuchung().getProjekt());
projekt.setAttribute("bezeichnung");
projekt.setPleaseChoose("Bitte auswählen");
projekt.setPleaseChoose("Bitte auswählen");
return projekt;
}

Expand All @@ -526,7 +526,7 @@ public DialogInput getSuchKonto() throws RemoteException {
}

public Button getSammelueberweisungButton() {
sammelueberweisungButton = new Button("Sammelüberweisung", new Action() {
sammelueberweisungButton = new Button("Sammelüberweisung", new Action() {

@Override
public void handleAction(Object context) {
Expand Down Expand Up @@ -579,7 +579,7 @@ public Input getSuchProjekt() throws RemoteException {
suchprojekt = new SelectInput(projektliste, null);
suchprojekt.addListener(new FilterListener());
suchprojekt.setAttribute("bezeichnung");
suchprojekt.setPleaseChoose("keine Einschränkung");
suchprojekt.setPleaseChoose("keine Einschränkung");
return suchprojekt;
}

Expand Down Expand Up @@ -647,7 +647,7 @@ public DateInput getVondatum() {
}
this.vondatum = new DateInput(d, new JVDateFormatTTMMJJJJ());
this.vondatum.setTitle("Anfangsdatum");
this.vondatum.setText("Bitte Anfangsdatum wählen");
this.vondatum.setText("Bitte Anfangsdatum wählen");
this.vondatum.addListener(new FilterListener());
this.vondatum.setMandatory(true);
return vondatum;
Expand All @@ -665,7 +665,7 @@ public DateInput getBisdatum() {
}
this.bisdatum = new DateInput(d, new JVDateFormatTTMMJJJJ());
this.bisdatum.setTitle("Anfangsdatum");
this.bisdatum.setText("Bitte Anfangsdatum wählen");
this.bisdatum.setText("Bitte Anfangsdatum wählen");
this.bisdatum.addListener(new FilterListener());
this.bisdatum.setMandatory(true);
return bisdatum;
Expand Down Expand Up @@ -744,7 +744,7 @@ private void handleStore() throws ApplicationException {
} else {
SplitbuchungsContainer.add(b);
refreshSplitbuchungen();
GUI.getStatusBar().setSuccessText("Buchung übernommen");
GUI.getStatusBar().setSuccessText("Buchung übernommen");
}
} catch (RemoteException ex) {
final String meldung = "Fehler beim Speichern der Buchung.";
Expand All @@ -769,7 +769,7 @@ private Mitgliedskonto getSelectedMitgliedsKonto(Buchung b) throws ApplicationEx
mk.setBetrag(b.getBetrag());
mk.setDatum(b.getDatum());
mk.setMitglied(mitglied);
mk.setZahlungsweg(Zahlungsweg.ÜBERWEISUNG);
mk.setZahlungsweg(Zahlungsweg.ÜBERWEISUNG);
mk.setZweck1(b.getZweck());
mk.store();
mitgliedskonto.setValue(mk);
Expand Down Expand Up @@ -826,7 +826,7 @@ private Long getSelectedProjektId() throws ApplicationException {
Long id = new Long(projekt.getID());
return id;
} catch (RemoteException ex) {
final String meldung = "Gewähltes Projekt kann nicht ermittelt werden";
final String meldung = "Gewähltes Projekt kann nicht ermittelt werden";
Logger.error(meldung, ex);
throw new ApplicationException(meldung, ex);
}
Expand All @@ -840,7 +840,7 @@ private Long getSelectedBuchungsArtId() throws ApplicationException {
Long id = new Long(buchungsArt.getID());
return id;
} catch (RemoteException ex) {
final String meldung = "Gewählte Buchungsart kann nicht ermittelt werden";
final String meldung = "Gewählte Buchungsart kann nicht ermittelt werden";
Logger.error(meldung, ex);
throw new ApplicationException(meldung, ex);
}
Expand Down Expand Up @@ -1094,7 +1094,7 @@ private void starteAuswertung(boolean einzelbuchungen) {
}

FileDialog fd = new FileDialog(GUI.getShell(), SWT.SAVE);
fd.setText("Ausgabedatei wählen.");
fd.setText("Ausgabedatei wählen.");

String path = settings.getString("lastdir", System.getProperty("user.home"));
if (path != null && path.length() > 0) {
Expand Down Expand Up @@ -1124,7 +1124,7 @@ private void starteCSVExport() {
final List<Buchung> buchungen = query.get();

FileDialog fd = new FileDialog(GUI.getShell(), SWT.SAVE);
fd.setText("Ausgabedatei wählen.");
fd.setText("Ausgabedatei wählen.");

String path = settings.getString("lastdir", System.getProperty("user.home"));
if (path != null && path.length() > 0) {
Expand Down Expand Up @@ -1181,13 +1181,13 @@ private void starteAuswertungBuchungsjournal() {
BuchungsjournalSortDialog djs = new BuchungsjournalSortDialog(
BuchungsjournalSortDialog.POSITION_CENTER);

// 20220823: sbuer: Statische Variablen fuer neue Sortiermöglichkeiten
// 20220823: sbuer: Statische Variablen fuer neue Sortiermöglichkeiten
String sort = djs.open();
query.setOrdername(sort);


FileDialog fd = new FileDialog(GUI.getShell(), SWT.SAVE);
fd.setText("Ausgabedatei wählen.");
fd.setText("Ausgabedatei wählen.");

String path = settings.getString("lastdir", System.getProperty("user.home"));
if (path != null && path.length() > 0) {
Expand Down Expand Up @@ -1324,7 +1324,7 @@ public boolean isBuchungAbgeschlossen() throws ApplicationException {
}
}
} catch (RemoteException e) {
throw new ApplicationException("Status der aktuellen Buchung kann nicht geprüft werden.", e);
throw new ApplicationException("Status der aktuellen Buchung kann nicht geprüft werden.", e);
}
return false;
}
Expand Down

0 comments on commit bcba0ab

Please sign in to comment.