Title: Interval for Exceptions
Last modified: December 12, 2016

---

# Interval for Exceptions

 *  Resolved [mumbomedia](https://wordpress.org/support/users/mumbomedia/)
 * (@mumbomedia)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/interval-for-exceptions/)
 * Hello
 * is it possible to use an interval instead of creating an exception for each day.
   
   Background: The restaurant has company holidays in an interval of x days. So 
   it would be really helpful if they could only set the start date and the end 
   date of the holiday and don’t have to set up each each day of the holiday as 
   an exception. Internally the exceptions could be maybe store for each day.
 * E.g. The restaurant close from December, 24th to January, 6th it has to create
   14 exceptions. If it could set up only the start and end date it would save time
   and therefore money because it hasn’t set up the other 13 days.
 * Kind regards
 * mumbomedia

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/interval-for-exceptions/#post-8542760)
 * Hi [@mumbomedia](https://wordpress.org/support/users/mumbomedia/),
 * That sounds like a good idea. I’ve added an issue for it to the developer repo
   which you can follow here:
 * [https://github.com/NateWr/restaurant-reservations/issues/92](https://github.com/NateWr/restaurant-reservations/issues/92)
 * I like the idea but have to say it’s not very high on my priority list, so I 
   can’t promise it will be implemented soon. But it sounds like an obvious improvement
   so I hope to be able to get to it in the future.
 *  Thread Starter [mumbomedia](https://wordpress.org/support/users/mumbomedia/)
 * (@mumbomedia)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/interval-for-exceptions/#post-8542903)
 * Hi [@natewr](https://wordpress.org/support/users/natewr/),
 * glad to hear that.
    I have also some other customization wishes from our client
   on my agenda. But these are planned for 2017 so this improvement is not on the
   top of my agenda, too.
 * Another wish from our client is to make the booking table view in the backend
   more clearer.
    They want to group it by day, but I have no plan how to archieve
   it without altering the whole output. I believe it is unpossible. Furthermore
   the filtering by name has to be grouped by name also.
 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/interval-for-exceptions/#post-8544920)
 * Hi [@mumbomedia](https://wordpress.org/support/users/mumbomedia/),
 * One of my planned addons for the future is a more comprehensive table management
   addon. It will be built around a touch-friendly interface that’s designed for
   restaurant staff to more quickly manage bookings in-house, and should make it
   easier to get a run-down of bookings going on right this evening.
 * You can create your own custom filters for bookings if you want. The bookings
   data that is used to generate the table is loaded here:
 * [https://github.com/NateWr/restaurant-reservations/blob/master/includes/WP_List_Table.BookingsTable.class.php#L883-L913](https://github.com/NateWr/restaurant-reservations/blob/master/includes/WP_List_Table.BookingsTable.class.php#L883-L913)
 * That passes arguments to the `rtbQuery` class which accepts arguments similar
   to `WP_Query`. You can learn more about that class here:
 * [https://github.com/NateWr/restaurant-reservations/blob/master/includes/Query.class.php](https://github.com/NateWr/restaurant-reservations/blob/master/includes/Query.class.php)
 *  Thread Starter [mumbomedia](https://wordpress.org/support/users/mumbomedia/)
 * (@mumbomedia)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/interval-for-exceptions/#post-8546293)
 * Hi [@natewr](https://wordpress.org/support/users/natewr/),
 * thanks a lot for the useful information.
    The output is displayed row for row
   as it is returning from the rtbQuery result set?
 *  [NateWr](https://wordpress.org/support/users/natewr/)
 * (@natewr)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/interval-for-exceptions/#post-8546729)
 * Hi [@mumbomedia](https://wordpress.org/support/users/mumbomedia/),
 * Yes, `rtbQuery` returns an array of `rtbBooking` objects. Each `rtbBooking` object
   is then passed to the `column_default` function to render the output for each
   column:
 * [https://github.com/NateWr/restaurant-reservations/blob/master/includes/WP_List_Table.BookingsTable.class.php#L394-L485](https://github.com/NateWr/restaurant-reservations/blob/master/includes/WP_List_Table.BookingsTable.class.php#L394-L485)
 *  Thread Starter [mumbomedia](https://wordpress.org/support/users/mumbomedia/)
 * (@mumbomedia)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/interval-for-exceptions/#post-8554964)
 * Hi [@natewr](https://wordpress.org/support/users/natewr/),
 * thanks a lot for the useful information.
    The implementation should no longer
   be a problem.
 * Tomorrow it is my last working day for 2016, so the implementation will be made
   after January, 9th 2017.
 * If there will be problems within the implementation, I will inform you asap.
 * Merry Xmas and a Happy New Year!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Interval for Exceptions’ is closed to new replies.

 * ![](https://ps.w.org/restaurant-reservations/assets/icon-128x128.png?rev=2205491)
 * [Five Star Restaurant Reservations - WordPress Booking Plugin](https://wordpress.org/plugins/restaurant-reservations/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restaurant-reservations/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restaurant-reservations/)
 * [Active Topics](https://wordpress.org/support/plugin/restaurant-reservations/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restaurant-reservations/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restaurant-reservations/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [mumbomedia](https://wordpress.org/support/users/mumbomedia/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/interval-for-exceptions/#post-8554964)
 * Status: resolved