Wunderbyte-GmbH / moodle-mod_booking

Moodle Booking Module
https://www.wunderbyte.at
21 stars 39 forks source link

MUSI-574 Zusatzbuchungen #601

Closed georgmaisser closed 2 weeks ago

georgmaisser commented 1 month ago

Addition item booking (not person) with price. Special feature: We can link this sub booking to a config form element and provide a value, which needs to be matched. This allows to restrict the availability of subbookings to the choice people made in the config form (before actually booking). This is useful when eg we want people to choose beforehand the sub booking they need to select later, like when we need to approve the subbookings.

In this scenario, we have a booking option with price and 'Book only after confirmation' checked. We create a form like this, when we have one room with two beds and one with three beds.

label: Book your room Value: noroom => No room => 30 twobeds => Two beds room => 1 threebeds => Three beds room => 1

After saving, we create the subbooking of the type "additional item".

In the "Link to the form of this booking option" - select, we can choose the label we created in the form above. The value of the first subbooking will be 'twobeds'. We can now set the price and save.

Now we create another subbooking limited to the threebeds value.

When a user books now, she will be able to select a value in the form and book on the waitinglist. After confirmation, the form will not be shown to her again, she can only book the subbooking which corresponds to the selected value. The other subbookings are not shown to her.