meeting-room-booking-system / mrbs-code

MRBS application code
Other
121 stars 59 forks source link

edit_entry help requested #2010

Open jberanek opened 7 years ago

jberanek commented 7 years ago

[Transferred from the general mailing list]

We currently successfully run MRBS 1.4.8 for our local association (culture and sports). What happens is that, even when there are days off like vacations, we may need to book rooms on an occasional basis for special meetings. At the time of 1.4.8, I could find out how to add an additional checkbox and the necessary code to allow this overwrite operation so that it looks like ‘closed’ and yet allow for adding these special meetings. Since then, MRBS has fortunately evolved a lot and looks now much better but the drawback is that the code has changed so much that I’ve been unable so far to figure out where to do this change.

If anyone could point me in the right direction, this would be greatly appreciated. Basically I just need to be able to add a booking no matter what the room status is. Since there is only one person creating bookings, I will be adding a checkbox to the edit_entry screen to allow her to ‘overwrite’ the closed status of the room on demand and create the requested booking.

Reported by: campbell-m

Original Ticket: mrbs/support-requests/1294

jberanek commented 7 years ago

I'm not quite sure what you are trying to do. Are you trying to allow two bookings in the same slot, ie the "vacation" booking and the special meeting?

Original comment by: campbell-m

jberanek commented 7 years ago

Yes. What happens is that during public holidays, the city building we use is declared as 'closed´ to the public. However, we may need to book rooms during these periods, for instance to hold board meetings or other tasks such as trainings.

Even if publicly closed, it allows our 50+ persons managing our various activities (tennis, judo, scuba diving or 47+ other activities) to have an immediate and complete view of what's happening in the building, since mrbs is hooked to the main association website (http://www.clubchevry2.com) Hope I clarified it enough, otherwise don't hesitate to leave me a message.

Digging into the code I figured how to hack a 'closed' booking by modifying the functions_table.inc file but I'd rather see some sort of a global config 'allow_overwrite' parameter in the config file in order to make it more generic.

Since I'm more of a .Net developer and not so fluent in php, I'll follow whatever advice you can give me.

Thank you so much for bringing mrbs to people like us.

Cheers

Philippe

Original comment by: *anonymous

jberanek commented 7 years ago

It sounds like you've now come up with a solution for your problem.

I'm not sure that an 'allow_overwrite' parameter is going to be a good idea. The whole point of MRBS is that it's designed to stop double bookings. I assume that at the moment you book out the holidays with a "booking" clalled "Closed" or something like that? And the public calendar on your website takes its input from MRBS? But presumably there's some code on the website that is converting the MRBS bookings into the form necessary for the website? If so, could the holidays not be inserted there?

Original comment by: campbell-m

jberanek commented 7 years ago

No, there's no interaction so far between mrbs and the website itself. It's only a passive link. I fully understand that mrbs is about preventing double bookings but I'm just trying to tailor it to our specific needs. I'll continue my quest for a local.hack :-). Thx Philippe

Original comment by: *anonymous

jberanek commented 7 years ago

I must confess that I am still not entirely clear. I had a look at the main association website and the calendar page http://www.clubchevry2.com/calendrier/calendriermensuel/2017/6/- and couldn't see a link to MRBS. Maybe that's not the calendar you mean?

Original comment by: campbell-m

jberanek commented 7 years ago

No, there is no "visible" link. We don't want it to be public, but if you go to http://www.clubchevry2.com/resasalles, you('ll see it. We give this link only to the folks in charge of activities so that they can quickly view what happens in the building.

Original comment by: *anonymous

jberanek commented 7 years ago

Actually, today is a very good example of what I'm trying to explain: you can click below the existing booking when logged in and create another entry as described in the attached jpeg. I added a parameter (improperly called 'Ecraser' I admit it :-) ) at the bottom of the screen and this what I'd like to achieve also with 1.6.x Cheers Philippe

Original comment by: *anonymous

Attachments: https://sourceforge.net/p/mrbs/support-requests/_discuss/thread/5b87279b/970e/attachment/campbell.jpg