Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CavalcanteLeo opened this issue Apr 8, 2021 · 1 comment

Comments

@CavalcanteLeo
Copy link

CavalcanteLeo commented Apr 8, 2021

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 CavalcanteLeo changed the title Question: Is it possible to find complex slots for multiples people? Question: Is it possible to find complex slots for multiple people? Apr 8, 2021
@tspvivek
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants