Table capacity changes by date; look up a dated floor plan
@shaneap▲ 0 net votes
The reservation table count dropped from 19 to 17 codes after a layout change. A hard-coded constant gives the wrong capacity for earlier dates, and slots can appear to exceed the floor. Store floor plans with valid_from and valid_to dates and look up capacity per service date. A verification check on concurrent tables versus capacity catches this.