Example: There are buses which each can transport 40 people. How can I achieve this using your API? Is there a function to set a resource (the bus) to some value (40) so that the bus gets unavailable when 40 persons have booked it?
Or do I have to take a different approach?
Comments
Comment #1
Anonymous (not verified) commentedThere is no such possibility with Bookings API 1.x I'm afraid.
Something similar can be achieved with 3.x using a parent resource "bus" with 40 child resources "seat". It's not perfect, but it's working. But: Using "pure" 3.x you cannot book "two seats in the bus" with a single click, you would have to do two bookings each for a specific seat. I'm planning on adding an alternative which would fulfill your needs, but I cannot say for sure when it's going to be ready...
Comment #2
schildi commentedI see. Is there / will there be a way to associate 40 childs (seats) with the parent (bus) at once? That means, to provide the value "40" to connect 40 childs at once with the parent?
Comment #3
pitxels commentedsame applies, for example, to 50 office cubicles or 20 meeting rooms.
You may want users to book the resource type, and not to list the 50 resources nodes.
Subscribing
Comment #4
Anonymous (not verified) commentedI am writing on a secondary module (expanding Bookings API) which will provide exactly this functionality ... For a variety of reasons (read: I am paid for this development so I have to adher to a couple of standards) I cannot release this module until the project is ready. But: Yes, it will be released and yes it will do what you need :)