Skip to content

Commit

Permalink
Feriennet: Fix definition of "overfull"
Browse files Browse the repository at this point in the history
Attendees, who are blocked aren't counted for an occasion to be "overfull"

TYPE: Bugfix
LINK: OGC-1312
  • Loading branch information
BreathingFlesh authored Sep 24, 2024
1 parent 943685c commit d17ab4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/onegov/feriennet/queries/occasions_by_state.sql
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ occasion_states AS (
CASE
WHEN cancelled = TRUE
THEN 'cancelled'
WHEN total_bookings > max_spots
WHEN total_bookings > max_spots AND accepted_bookings = max_spots
THEN 'overfull'
WHEN accepted_bookings = 0
THEN 'empty'
Expand Down

0 comments on commit d17ab4d

Please sign in to comment.