node-sscheduler icon indicating copy to clipboard operation
node-sscheduler copied to clipboard

Question: Is it possible to find complex slots for multiple people?

Open CavalcanteLeo opened this issue 3 years ago • 1 comments

I'm working on a beauty salon app, that we can schedule some services.

Let's assume that the customer would like to schedule 4 services: haircut, manicure, pedicure and eyebrows. Each of these services can be a different professional or not. (let's imagine 3 professionals and 4 services in this case)

here are some rules:

I can cut my hair and do my nails at the same time. I can NOT cut my hair and make eyebrows at the same time I can NOT do manicure and pedicure at the same time IF both are with the same professional for example:

haircuts and manicure from 11:00am to 11:40 am eyebrow and pedicure from 11:40am to 12:20 pm

Some more problems, sometimes I may not have all the professionals available to do these sequential/parallel services straight, so if there is no straight slot available to schedule, then I must return the closest slot within a maximum wait of 20 min. Let's imagine there is no slot available to make it straight, the would be something like:

haircut from 11:00am to 11:40am eyebrow and pedicure from 11:40am to 12:20pm manicure from 12:35pm to 12:55pm (closest available slot is 15 min after the last one)

I can even pay for a help

CavalcanteLeo avatar Apr 08 '21 18:04 CavalcanteLeo

@CavalcanteLeo How you solved this? I am also working in similar usecase.

tspvivek avatar Dec 22 '22 18:12 tspvivek