During the meeting, State Changers developed a solution within a system to handle bookings with regard to half-week and full-week availability. They identified the problem as needing to mark half-week bookings within the selected full-week as booked. Key system tools used included API calls, Boolean fields, and database tables.
The team discussed the use of a 'Search' function to query database records and how to construct the correct conditional statements to find the relevant weeks. Here, the logic centered on every end date of bookings, as they were either the first half or the second half of the week. In the custom query, they included conditions for matching either the start date or the end date. They then defined how to identify full weeks and half weeks within the system. This involved using Boolean fields to distinguish between them. A new conditional statement was created, filtering for half weeks within the same week as the initial full-week booking. The meeting concluded on a positive note, with the team feeling confident in their strategy to solve the booking overlap challenge.
(Source: Office Hours 11/14 )
Join State Change Risk-Free