Skip to content

Commit

Permalink
Rest
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann Maierhofer committed Feb 13, 2025
1 parent 9f376a2 commit 7669a2c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/de/jost_net/JVerein/gui/menu/MitgliedskontoMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/de/jost_net/JVerein/io/SollbuchungExport.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/de/jost_net/JVerein/server/RechnungImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ public ArrayList<SollbuchungPosition> 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())
{
Expand Down

0 comments on commit 7669a2c

Please sign in to comment.