[#1288] Problems with getStartTimeMatrix when count > 1

Migrated from Redmine #1288 | Author: Harbin Betancourt
Status: New | Priority: High, I’m very impatient | Created: 2024-09-26


I’m trying to use getStartTimeMatrix to get the aviability for a given period of time:
Mi timeframe is 15 minuts and event that I’m using last 15 minutes so I’m trying to getStartTimeMatrix for twice the time using count = 2.
It always return an object with the date specified and an empty array.

const schedule = clientAPIsimplebook.getStartTimeMatrix(calendar.value, calendar.value, eventid, 2, countid);

Values I’m passing:
calendar.value = completely free day (no appointments)
eventid = 5 (A placeholder service that last 15 minutes)
2 = 2 (The only worker I have)
countid = 2 (When I pass 1, works perfectly, but I’m trying to get multiple times the timeframe)

I think this is a bug, or maybe I missunderstood the whole thing.

Harbin Betancourt wrote:

I’m trying to use getStartTimeMatrix to get the aviability for a given period of time:
My timeframe is 15 minuts and event that I’m using last 15 minutes so I’m trying to getStartTimeMatrix for twice the time using count = 2.
It always return an object with the date specified and an empty array.

const schedule = clientAPIsimplebook.getStartTimeMatrix(calendar.value, calendar.value, eventid, 2, countid);

Values I’m passing:
calendar.value = completely free day (no appointments)
eventid = 5 (A placeholder service that last 15 minutes)
2 = 2 (The only worker I have)
countid = 2 (When I pass 1, works perfectly, but I’m trying to get multiple times the timeframe)

I think this is a bug, or maybe I missunderstood the whole thing.

Redmine Admin wrote:

does your provider has 2 slots or more?

Harbin Betancourt wrote:

Redmine Admin wrote:

does your provider has 2 slots or more?

Thanks for your answer, that was the problem. But I didn’t what I got was to services scheduled for the same time.
What I realy need is to schedule an appointment with a varaible duration setted from client side. Any ideas?