phpScheduleIt
May 18, 2013, 02:33:34 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Preventing a resource to be used in a time slot used by another one  (Read 544 times)
jlargo
Newbie
*

Karma: 0
Posts: 1


« on: April 21, 2009, 09:56:24 AM »

Hi all!

I just recently installed version 1.2.11 and configured it to see if I could use it for my Healthcare Beauty Shop.
In my shop, 2 beauticians share a single room and they cannot work together at the same time.
In this beauty saloon they can share accessories without restrictions.
I have created 1 ressource per type of care (body massage, face lifting massage, hands care, feet care, etc ..)
Some of the ressources are not available to one of the beauticians because she is not trained for.

All this configuration works fine except the fact that both beauticians are still able to reserve the room on the same day and overlapping time.
Normally, if they proceed carefully, they should tace care in not making a personal resource booking at the same time as the other colleague, however, they already made a mistake and 2 customers came at the same time to get their care.

Is there a way to make sure that 2 resources cannot be reserved withing the same day and within the same time range (not even overlapping by 1 minute)?
This would be nice and it would avoid making mistakes.

Many thanks in advance for your advice.

Jose
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5403


WWW
« Reply #1 on: April 21, 2009, 01:35:07 PM »

You would need to make some simple changes in lib\db\resdb.class.php.

First, comment out line 74:

$res->get_machid(),

Then change line 82 to:

. ' WHERE machid IS NOT NULL'
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!