Skip to content

Commit

Permalink
Fix Jahresabschluss (#165)
Browse files Browse the repository at this point in the history
* Fix Jahresabschluss

* Fix Query
  • Loading branch information
JohannMaierhofer committed Feb 24, 2024
1 parent 0623ee9 commit e5e0978
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/de/jost_net/JVerein/server/KontoImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,8 @@ public DBIterator<Konto> getKontenEinesJahres(Geschaeftsjahr gj)
konten.addFilter("(eroeffnung is null or eroeffnung <= ?)",
new Object[] { gj.getEndeGeschaeftsjahr() });
konten.addFilter(
"(aufloesung is null or year(aufloesung) = ? or " + "aufloesung >= ? )",
new Object[] { gj.getBeginnGeschaeftsjahrjahr(),
gj.getEndeGeschaeftsjahr() });
"(aufloesung is null or aufloesung >= ? )",
new Object[] { gj.getBeginnGeschaeftsjahr() });
konten.setOrder("order by bezeichnung");
return konten;
}
Expand Down
1 change: 1 addition & 0 deletions src/de/jost_net/JVerein/util/Geschaeftsjahr.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public Geschaeftsjahr(Date datum) throws ParseException, RemoteException
.getBeginnGeschaeftsjahr() + cal.get(Calendar.YEAR));
}
cal.setTime(beginnGeschaeftsjahr);
beginnGeschaeftsjahrjahr = cal.get(Calendar.YEAR);
cal.add(Calendar.YEAR, 1);
cal.add(Calendar.DAY_OF_MONTH, -1);
endeGeschaeftsjahr = cal.getTime();
Expand Down

0 comments on commit e5e0978

Please sign in to comment.