diff --git a/src/de/jost_net/JVerein/gui/menu/MitgliedskontoMenu.java b/src/de/jost_net/JVerein/gui/menu/MitgliedskontoMenu.java index c2e5ae5ed..db4dcfa19 100755 --- a/src/de/jost_net/JVerein/gui/menu/MitgliedskontoMenu.java +++ b/src/de/jost_net/JVerein/gui/menu/MitgliedskontoMenu.java @@ -267,9 +267,9 @@ public boolean isEnabledFor(Object o) try { - Sollbuchung mk = Einstellungen.getDBService() + Sollbuchung sollb = Einstellungen.getDBService() .createObject(Sollbuchung.class, mkn.getID()); - return mk.getRechnung() == null; + return sollb.getRechnung() == null; } catch (RemoteException e) { @@ -303,9 +303,9 @@ public boolean isEnabledFor(Object o) try { - Sollbuchung mk = Einstellungen.getDBService() + Sollbuchung sollb = Einstellungen.getDBService() .createObject(Sollbuchung.class, mkn.getID()); - return mk.getRechnung() != null; + return sollb.getRechnung() != null; } catch (RemoteException e) { diff --git a/src/de/jost_net/JVerein/gui/view/AbstractMitgliedDetailView.java b/src/de/jost_net/JVerein/gui/view/AbstractMitgliedDetailView.java index 12027ceac..2a4143813 100644 --- a/src/de/jost_net/JVerein/gui/view/AbstractMitgliedDetailView.java +++ b/src/de/jost_net/JVerein/gui/view/AbstractMitgliedDetailView.java @@ -85,7 +85,7 @@ public void bind() throws Exception zeichneUeberschrift(); // Einschub Ende - final SollbuchungControl controlMk = new SollbuchungControl(this); + final SollbuchungControl controlSollb = new SollbuchungControl(this); ScrolledContainer scrolled = new ScrolledContainer(getParent(), 1); @@ -122,7 +122,7 @@ public void bind() throws Exception zeichneZusatzbeitraege(showInTab ? folder : oben.getComposite()); showInTab = Einstellungen.getEinstellung().getZeigeMitgliedskontoInTab(); - zeichneMitgliedkonto(controlMk, showInTab ? folder : oben.getComposite()); + zeichneMitgliedkonto(controlSollb, showInTab ? folder : oben.getComposite()); showInTab = Einstellungen.getEinstellung().getZeigeVermerkeInTab(); zeichneVermerke(showInTab ? folder : oben.getComposite(), 1); diff --git a/src/de/jost_net/JVerein/io/SollbuchungExport.java b/src/de/jost_net/JVerein/io/SollbuchungExport.java index b570d473b..204b523c0 100644 --- a/src/de/jost_net/JVerein/io/SollbuchungExport.java +++ b/src/de/jost_net/JVerein/io/SollbuchungExport.java @@ -108,7 +108,7 @@ public String getDateiname() protected abstract void open() throws DocumentException, FileNotFoundException; - protected abstract void add(Sollbuchung mk) throws RemoteException; + protected abstract void add(Sollbuchung sollb) throws RemoteException; protected abstract void close(ProgressMonitor monitor) throws IOException, DocumentException; diff --git a/src/de/jost_net/JVerein/server/RechnungImpl.java b/src/de/jost_net/JVerein/server/RechnungImpl.java index de3f6e59f..a9b8a3d31 100644 --- a/src/de/jost_net/JVerein/server/RechnungImpl.java +++ b/src/de/jost_net/JVerein/server/RechnungImpl.java @@ -347,8 +347,8 @@ public ArrayList getSollbuchungPositionList() .createList(SollbuchungPosition.class); it.join(Sollbuchung.TABLE_NAME); it.addFilter( - Sollbuchung.TABLE_NAME + ".id = sollbuchungposition.sollbuchung"); - it.addFilter("rechnung = ?", getID()); + Sollbuchung.TABLE_NAME_ID + " = sollbuchungposition.sollbuchung"); + it.addFilter(Sollbuchung.T_RECHNUNG + " = ?", getID()); it.setOrder("ORDER BY datum"); while (it.hasNext()) {