Resource booking grid

by Gisle Hannemyr

This chapter ...

Table of contents

Drupal projects discussed in this chapter: Resource booking grid.

Introduction

The name space "rbg" is available.

Resource booking grid (RBG) is a fork of Room Reservations.

Installation

[TBA]

Setting up

Detailed (but outdated) instructions for configuring the module can be found at Drupal.org.

The module defines three types of content. All appear when you visit Structure ยป Content types and Add content.

Those marked with a * are not yet implemented.

Setting up RBG

  1. Navigate to date settings and select ISO dates.
  2. Give the authenticated user the following permissions: RBG booking: Create new content, Edit own content, Delete content.

Creating and using a bookable resource

Set up at least one category and one resource. This produces a grid (path includes date). Resources can now be booked by clicking in grid and selecting duration.

Note that comments are by default enabled (can be turned of in the GUI).

Calendar display

The default calender display is shown below:

roomres01.png

The display has two sets of tabs, with a text and date field between them.

The top tab is:

The second tab is:

The main problem with current display is that it requires a lot of screen area.

Flip display feature allows for a large number of rooms, but requires a short time frame (week?) and custom css to work right. Leave as is?

Schema

The only native table is _variables. It defines:

Everything else is in fields that are created on the fly (but are explictly deleted upon uninstall).

Manual tests

To do

Pending:

Done:

  1. Change placement of admin from "system" to "content" (inital commit).
  2. Remove commented out code.
  3. xRemove qtip dependency (also fixed undefined notices).
  4. Fix remaining field errors for reistall.
  5. Fix array overrun if no rooms exist.
  6. Make room description a single line.
  7. Change human readable names to resource.
  8. Remove unused admin functions.
  9. Fix node options.
  10. Remove graphic.
  11. Remove unused sms and mail functions.
  12. Move variables to global variables table.
  13. Fix default display texts.

Booking types and pricing model

Percentage of base price (e.g. Tolfa):

Special rules:

Content types overview

* RGB booking type fields:

RGB booking fields (without helper fields):

RGB category fields:

* RGB price adjustment fields:

Both recurring and campaign can be set, but they cannot overlap.

RGB resource fields:

Owner is either logged in user, or a special user "bookingmaster". Owner can change booking. Bookings has revisions enabled.

Pricing model

  1. Each resource has two base prices (own fields) for daily and hourly rental (-1 means NA).
  2. The booking type has a percentage modifier, so owner is 100 %, friends with owner is

Features

Margarita:

  1. When booking, email is sent to all members, and state is set to pending. If there are no conflict in X days, automatically set to conformed.

Final word

[TBA]


Last update: 2017-07-23.