Skip to content

Commit

Permalink
Fehler in SollbuchungQuery (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
lenilsas authored Jan 25, 2025
1 parent e342eee commit 0d6bf49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/de/jost_net/JVerein/Queries/SollbuchungQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,13 @@ else if (count == anzahl)

if (DIFFERENZ.FEHLBETRAG == diff)
{
sql.append(" (HAVING SUM(buchung.betrag) < mitgliedskonto.betrag OR "
+ "(SUM(buchung.betrag) IS NULL AND mitgliedskonto.betrag > 0))");
sql.append(" HAVING SUM(buchung.betrag) < mitgliedskonto.betrag OR "
+ "(SUM(buchung.betrag) IS NULL AND mitgliedskonto.betrag > 0)");
}
if (DIFFERENZ.UEBERZAHLUNG == diff)
{
sql.append(" (HAVING SUM(buchung.betrag) > mitgliedskonto.betrag OR"
+ "(SUM(buchung.betrag) IS NULL AND mitgliedskonto.betrag < 0))");
sql.append(" HAVING SUM(buchung.betrag) > mitgliedskonto.betrag OR"
+ "(SUM(buchung.betrag) IS NULL AND mitgliedskonto.betrag < 0)");
}

List<Long> ids = (List<Long>) service.execute(sql.toString(), param.toArray(),
Expand Down

0 comments on commit 0d6bf49

Please sign in to comment.