Hi all,
I'm trying some things with the conference room booking system, to build a crew and materials planning application.
So what I did was changing the conference room page to a materials page. I love the way that it checks the availability. What I want to add is the following:
1. So lets' say I want to add a camera. I have 5 of these, so I want to add a number field in which I input 5.
2. Now when I make a booking I want the option to say I need 2 for that date/time.
3. Great! Now I have 2 camera's booked. So, this is easily achievable.
4. From here its getting difficult I think. I now want to book another 4 DJI camera's for a date/time that has (some) overlap with the already booked two camera's. Now the systems checks that this isn't possible and sends a message that on this date/time there are only 3 available.
I've noticed that in the deluge script in the conference room booking app there are some codes with count, so maybe that is an option, but i'm not sure. This is from the booking a room page/workflow.
- if(booked_rooms.count() != 0)
- {
- alert "This room is unavailable for this time period";
- input.To_Time_With_Date = null;
Also I'm not sure about how this needs to work: when I book 2 camera's does this needs to generate two records (one per camera) or one record with 2 camera's in them.
Hope someone can point me in the right direction. I'm new to this, but I managed to do some tweaking to the deluge script and renaming stuff and know some basic HTML. So i'm starting to get the basics and can read/understand the code (thanks to the great explanation pages on deluge).
Thank you all, you've been more than helpful with some other questions I've had.